pushRouteLazily static method

void pushRouteLazily({
  1. required Future loader(),
  2. required StatelessWidgetBuilder builder,
})

Pushes a new route lazily. Navigator.fallback is rendered while the route is being loaded.

Implementation

static void pushRouteLazily({
  required final Future<dynamic> Function() loader,
  required final StatelessWidgetBuilder builder,
}) =>
    _state!._pushRouteLazily(loader: loader, builder: builder);