isRoot property
bool
isRoot
Whether or not this value is below any other implicit navigators in the widget tree.
Implementation
bool get isRoot {
return context.findAncestorStateOfType<ImplicitNavigatorState>() == null;
}