Whether this route is on the navigator.
If the route is not only active, but also the current route (the top-most route), then isCurrent will also be true.
If a later route is entirely opaque, then the route will be active but not
rendered. It is even possible for the route to be active but for the stateful
widgets within the route to not be instatiated. See ModalRoute.maintainState
.
Source
bool get isActive { if (_navigator == null) return false; assert(_navigator._history.contains(this)); return true; }