activate method

  1. @override
void activate()
inherited

Called when this object is reinserted into the tree after having been removed via deactivate.

Implementation

@override
void activate() {
  super.activate();

  // If a tester is running, for example, don't switch out its error handler.
  if (WidgetsBinding.instance is WidgetsFlutterBinding) {
    // Introduce its own error handler
    FlutterError.onError = _errorHandler;
  }

  // No need. States do this themselves
  // forEachState((state) {
  //   state.activate();
  // }, reversed: true, remove: this);
}