isActive property

bool isActive

Whether is route is in the visible url-segments

Implementation

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