isCurrent property

bool get isCurrent

Returns true if this route is the current active route.

Implementation

bool get isCurrent => ModalRoute.of(this)?.isCurrent ?? false;