isCurrentActive property

bool isCurrentActive

Util getter for whether screen is current active

Implementation

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