push<T extends Object?> method
Future<T?>
push<T extends Object?>(
- Widget widget, {
- PageRouteOptions options = const PageRouteOptions.material(),
Implementation
Future<T?> push<T extends Object?>(Widget widget,
{PageRouteOptions options = const PageRouteOptions.material()}) {
assert(FlExtended().navigatorKey.currentState != null,
'Set FlExtended().navigatorKey to one of [MaterialApp CupertinoApp WidgetsApp]');
return FlExtended()
.navigatorKey
.currentState!
.push<T>(options.buildPageRoute(widget));
}