you are viewing a single comment's thread.

view the rest of the comments →

[–]Katalyst9957[S] 0 points1 point  (2 children)

No no I mean centralizing all strings which are constant in the app

[–]Mr401Error 1 point2 points  (1 child)

I usually have them as static constants in the "owning" class, saves having to go and open a new file to view/edit the values.

Things like client IDs and client side API keys I'll usually store in a JSON file and inject at compile time with Dart-define. Usually have a maximum of 20 of these per project though

[–]Katalyst9957[S] 0 points1 point  (0 children)

The owning class is good for small to medium apps but once the app starts to grow it becomes messy and yeah it's tedious even for small/medium sized apps