isCurrent property

bool isCurrent

Whether this route is the top-most route on the navigator.

If this is true, then isActive is also true.

Implementation

bool get isCurrent {
  return _navigator != null && _navigator._history.last == this;
}