pushWidget<T> method

Future<T?> pushWidget<T>(
  1. Widget widget
)

Pushes a new route with the given widget onto the navigator.

Returns a Future that completes when the pushed route is popped off the navigator.

Implementation

Future<T?> pushWidget<T>(Widget widget) {
  return push(NavUtil.route(widget));
}