I may have to try this. I've been using optional arguments with defaults for this instead. For more complex objects this can be more expressive. I've used it for other components (data, service, etc.) but never Widgets.
https://twitter.com/mcflyDev/status/1475496454806548485
#refactoring #flutterdev #flutter #fluttertip
🧐 Flutter #refactoring tip
— Gautier 💙 (@mcflyDev) December 27, 2021
Make your widgets more readable using factories#flutterdev #flutter #fluttertip pic.twitter.com/7FCevDfxJ6
There are no comments yet.