pushFromTop<T> static method

  1. @Deprecated('It will be removed on Nav 2025 - 3.0. Please use [push(navAni: NavAni.Top)]')
Future<T?> pushFromTop<T>(
  1. Widget screen, {
  2. 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),
    );