push<T> static method

Future<T?> push<T>(
  1. String location, {
  2. Object? extra,
})

Pushes a new location onto the navigation stack.

Returns a Future that completes with the result value when the route is popped.

Example:

final result = await BloomRouter.push<bool>('/modal-dialog');

Implementation

static Future<T?> push<T>(String location, {Object? extra}) {
  return instance.push<T>(location, extra: extra);
}