next<T> method

  1. @override
  2. @mustCallSuper
Future<T?> next<T>(
  1. NextArguments args
)
override

This method is never called on the last page, rather, lastPageCallback is called instead.

Implementation

@override
@mustCallSuper
Future<T?> next<T>(NextArguments args) =>
    Navigator.of(args.context).push(MaterialPageRoute(
        settings: RouteSettings(name: args.nextPage.hashCode.toString()),
        builder: (_) => args.nextPage));