I recently started a series of daily tweets about easy ways to improve your Dart & Flutter code. I called this Easy Wins.
To make these easier to find, I'm sharing 7 tips every week here.
24. One constructor is not enough? Use named constructors and initializer lists for more ergonomic APIs.
26. Need a class that can only be instantiated once (aka singleton)? Use static instance variable with a private constructor.
More tips coming next week. Subscribe via RSS for updates!