isActive property
bool
get
isActive
Indicates whether any modal is currently being shown
Returns true if any modal type is active, false otherwise.
For type-specific checks, use isDialogActive, isBottomSheetActive, isSideSheetActive, or isSnackbarActive.
Implementation
static bool get isActive =>
_activeModalController.state != null ||
isDialogActive ||
isSheetActive ||
isSnackbarActive;