isSideSheetActive property

bool get isSideSheetActive

Returns true if a side sheet is currently active Side sheets use the sheet controller with left/right positions

Implementation

static bool get isSideSheetActive {
  if (_sheetController.state == null) return false;
  final position = _sheetController.state!.sheetPosition;
  return position == SheetPosition.left || position == SheetPosition.right;
}