Is there a best practice for the location of custom helper classes in Flutter using BLoC architecture?
This is my package structure:
/data
/data_providers
/models
/repositories
/logic
/blocs
/cubits
/presentation
/screens
/widgets
/resources
Example: I have a custom helper class Tuple which is only used in my model /data/models/User.dart.
I see the following options:
- place class
Tupleabove or below classUserin/data/models/User.dart - create the file
/data/models/Tuple.dartand place classTuplethere - create the new package
/helpersin the root directory, create the file/helpers/Tuple.dartand place classTuplethere - or do you have other recommendations?
Of course all solutions are functionable. The question is: What is best practice?