What's the best practice to keep all the constants in Flutter?

前端 未结 8 627
终归单人心
终归单人心 2021-01-30 02:11

What\'s the best programming practice to

create a constant class in Flutter

to keep all the application constants for easy referenc

8条回答
  •  萌比男神i
    2021-01-30 02:33

    That's completely up to you.
    Using static has no disadvantages.
    Actually const is required for fields in a class.

提交回复
热议问题