initState method

  1. @override
void initState()
inherited

Initialize any 'time-consuming' operations at the beginning. Implement any asynchronous operations needed done at start up. @mustCallSuper Future< bool > initAsync() async => true; The framework will call this method exactly once. Override this method to perform initialization,

Implementation

/// The framework will call this method exactly once.
/// Override this method to perform initialization,
@override
void initState() {
  super.initState();
  _initChangeNotifier();
}