isTopSheetActive property
bool
get
isTopSheetActive
Returns true if a top sheet is currently active Top sheets use the sheet controller with top position
Implementation
static bool get isTopSheetActive {
if (_sheetController.state == null) return false;
final position = _sheetController.state!.sheetPosition;
return position == SheetPosition.top;
}