push<T extends Object?> method

Future<T?> push<T extends Object?>(
  1. DVRouteTarget target
)

Pushes target onto the navigation stack, keeping the current page. A route another host of dartvel.hosts owns is opened there instead, and the future completes with null: this page is being left.

Implementation

Future<T?> push<T extends Object?>(DVRouteTarget target) {
  final String location = locationOf(target);
  if (dvLeaveForOwningHost(location)) return Future<T?>.value();
  return _active.push<T>(location);
}