handleSelectAll method Null safety

  1. @protected
SelectionResult handleSelectAll(
  1. SelectAllSelectionEvent event
)

Selects all contents of all selectables.

Implementation

@protected
SelectionResult handleSelectAll(SelectAllSelectionEvent event) {
  for (final Selectable selectable in selectables) {
    dispatchSelectionEventToChild(selectable, event);
  }
  currentSelectionStartIndex = 0;
  currentSelectionEndIndex = selectables.length - 1;
  return SelectionResult.none;
}