init method

  1. @override
Future<RouteBase?> init()
override

Implementation

@override
Future<RouteBase?> init() async {
  if (_initializedInstance != null) {
    return _initializedInstance;
  }

  if (lifecycleHandlers != null && lifecycleHandlers!.isNotEmpty) {
    for (final config in lifecycleHandlers!) {
      await config.init(this);
    }
  }

  _initializedInstance = this;
  return _initializedInstance;
}