preload property

bool preload
final

Whether this route branch should be eagerly loaded when navigating to the associated StatefulShellRoute for the first time.

If this property is false (the default), the branch will only be loaded when needed. Set the value to true to force the branch to be loaded immediately when the associated StatefulShellRoute is visited for the first time. In that case, the branch will be preloaded by navigating to the initial location (see initialLocation).

Note: The primary purpose of branch preloading is to enhance the user experience when switching branches. As with all preloading, there is a cost in terms of resource use. Use sparingly and only after a thorough trade-off analysis.

Implementation

final bool preload;