isActive property

bool get isActive

Whether is route is in the visible url-segments

Implementation

bool get isActive => router.isRouteActive(name);