onReady property

void Function(RouteSettings settings) onReady
final

callback that contains the current route settings, you can use this callback to get the arguments for one route with our rebuild when pushNamedAndRemoveUntil or pushAndRemoveUntil are called.

Implementation

final void Function(RouteSettings settings) onReady;