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 ChangeNotifier to update values on the screen. Normally a getter and setter block does lookContinue reading “Replace getter and setter blocks with a oneliner when using ChangeNotifier.”