Replace getter and setter blocks with a oneliner when using ChangeNotifier.
When dart became ‘non-nullable by default’, an interesting keyword was added to the dart language: ‘late’.
Although it might not be so obvious at first glance, this keyword makes it possible to simplify getter and setter blocks when using a ChangeNot...
yapb.dev2 min read