useRootNavigator property

bool useRootNavigator
final

The useRootNavigator argument is used to determine whether to push the ColorPicker dialog to the Navigator furthest from or nearest to the given context.

By default, useRootNavigator is true and the dialog route created by build of ColorPicker dialogs are on the root.

This setting was moved here in version 2.1.0 in order to make the property accessible by Navigator pop functions both in the ColorPicker widget itself, as well as built-in dialogs that uses the ColorPicker.

Implementation

final bool useRootNavigator;