present method Null safety
- [Object? arguments]
Shows the route created by onPresent and invoke onComplete when it completes.
The arguments
object is passed to onPresent and can be used to
customize the route. It must be serializable via the
StandardMessageCodec. Often, a Map is used to pass key-value pairs.
Implementation
void present([Object? arguments]) {
assert(!isPresent);
assert(isRegistered);
final String routeId = onPresent(_navigator, arguments);
assert(routeId != null);
_hookOntoRouteFuture(routeId);
notifyListeners();
}