RestorableRouteFuture<T> constructor Null safety

RestorableRouteFuture<T>(
  1. {NavigatorFinderCallback navigatorFinder = _defaultNavigatorFinder,
  2. required RoutePresentationCallback onPresent,
  3. RouteCompletionCallback<T>? onComplete}
)

Creates a RestorableRouteFuture.

The onPresent and navigatorFinder arguments must not be null.

Implementation

RestorableRouteFuture({
  this.navigatorFinder = _defaultNavigatorFinder,
  required this.onPresent,
  this.onComplete,
}) : assert(onPresent != null), assert(navigatorFinder != null);