useSnapshotLoading property

  1. @protected
bool? get useSnapshotLoading

Whether the previous page's RouteSnapshot may stand in for this widget's loading state while its view model initialises.

Null (the default) means yes, unless buildLoading or buildLoadingOverlay has been overridden, in which case the custom loading view is shown instead. Return true or false to decide outright. Only applies while NavigationLogic.useSnapshotLoading is on and the route change went through NavigationLogic.

Implementation

@protected
bool? get useSnapshotLoading => null;