setSelecting method

  1. @override
void setSelecting(
  1. bool flag, {
  2. bool notify = true,
})
inherited

Change Multi-Select Status.

Implementation

@override
void setSelecting(bool flag, {bool notify = true}) {
  if (selectingMode.isNone) {
    return;
  }

  if (currentCell == null || isSelecting == flag) {
    return;
  }

  _state._isSelecting = flag;

  if (isEditing == true) {
    setEditing(false, notify: false);
  }

  // Invalidates the previously selected row.
  if (isSelecting) {
    clearCurrentSelecting(notify: false);
  }

  notifyListeners(notify, setSelecting.hashCode);
}