pushWidget<T> method
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));
}