offNamed method
Navigates off a named page and returns a result of type T
.
Implementation
@override
Future<T?> offNamed(
String page, {
Object? arguments,
String? id,
Map<String, String>? parameters,
}) async {
final PageSettings args = _buildPageSettings(page, arguments);
final RouteDecoder<T>? route = _getRouteDecoder(args);
if (route == null) {
return null;
}
_popWithResult();
return _push(route);
}