pushNamed method
void
pushNamed({})
Implementation
void pushNamed(
{required String name,
Object? arguments,
Widget? emptyPage,
bool custom = false,
String? restorationId}) {
var page = pageMap?[name];
_location = name;
if (custom) {
page = _routePathCallBack?.call(RouteInformation(location: _location));
}
if (page == null) {
_location = '404';
page = emptyPage ?? const EmptyPage();
}
push(
page: page,
name: name,
arguments: arguments,
restorationId: restorationId);
}