enabled property

bool enabled
final

Whether horizontal swipe gestures and programmatic opening are enabled.

When false (or when both leadingActions and trailingActions are empty), horizontal drags are not claimed in the gesture arena so ancestor horizontal scrollables (such as PageView) can scroll freely, while keeping GlassSwipeActions mounted in place so child does not remount.

Defaults to true.

Implementation

final bool enabled;