pushFromTop<T> static method
- @Deprecated('It will be removed on Nav 2025 - 3.0. Please use [push(navAni: NavAni.Top)]')
- Widget screen, {
- BuildContext? context,
Push screen from top to bottom
If you provide context, you can nest navigate in your specific context
Implementation
@Deprecated(
'It will be removed on Nav 2025 - 3.0. Please use [push(navAni: NavAni.Top)]')
static Future<T?> pushFromTop<T>(Widget screen,
{BuildContext? context}) async =>
navigatorState(context)?.push(
SlideFromTopRoute(screen),
);