initAsyncState method

  1. @override
Future<bool> initAsyncState(
  1. covariant State<StatefulWidget> state
)
override

Called with every StateX associated with this Controller Initialize any 'time-consuming' operations at the beginning. Implement any asynchronous operations needed done at start up.

Implementation

@override
Future<bool> initAsyncState(covariant State state) async {
  // Record the triggered event
  assert(() {
    if (_debugPrintEvents) {
      debugPrint(
          '$_consoleLeadingLine initAsyncState() in $_consoleClassName');
    }
    return true;
  }());
  return true;
}