goToReplacement<T extends Object?, TO extends Object?> method
Future<T?>
goToReplacement<T extends Object?, TO extends Object?>(
- WidgetBuilder builder, {
- RouteSettings? settings,
- bool fullscreenDialog = false,
Implementation
Future<T?> goToReplacement<T extends Object?, TO extends Object?>(
WidgetBuilder builder, {
RouteSettings? settings,
bool fullscreenDialog = false,
}) {
return Navigator.pushReplacement<T, TO>(
this,
MaterialPageRoute(
builder: builder,
fullscreenDialog: fullscreenDialog,
settings: settings,
),
);
}