to<T> static method
Implementation
static Future<T?> to<T>(
BuildContext context,
Widget Function() page, [
Object? arguments,
]) => Navigator.push<T>(
context,
MaterialPageRoute<T>(
builder: (_) => page(),
settings: RouteSettings(arguments: arguments),
),
);