currentOffset property

Offset get currentOffset

The cell's current horizontal offset. Wrapped with a setter so the global open-cell set stays in sync with the real open/closed state, letting callers query SwipeActionStore.anyCellOpen without needing a close event.

A cell counts as "open" only when its action buttons are showing, i.e. the offset is non-zero AND it is not in (or animating in/out of) edit mode — edit mode also drives currentOffset (to SwipeActionCell.editModeOffset) but intentionally hides the action buttons.

Implementation

Offset get currentOffset => _currentOffset;
set currentOffset (Offset value)

Implementation

set currentOffset(Offset value) {
  if (_currentOffset == value) return;
  _currentOffset = value;
  SwipeActionStore.getInstance()
      .setCellOpen(this, value.dx != 0.0 && !_inEditContext);
}