useRootNavigator property
The context, useRootNavigator and routeSettings arguments are passed to showDialog, the documentation for which discusses how it is used. context and useRootNavigator must be non-null.
Implementation
final bool useRootNavigator;