push<T> method

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

Implementation

Future<T?> push<T>(Widget widget) {
  return Navigator.push(
      context, MaterialPageRoute(builder: (context) => widget));
}