Skip to content

Commit

Permalink
MultiSelectableSelectionContainerDelegate documentation fixes. (#147843)
Browse files Browse the repository at this point in the history
Minor grammatical fixes to MultiSelectableSelectionContainerDelegate:

* Removed plural words describing a singular subject.
* Removed redundant language. 
* Elaborated on the behavior of `ensureChildUpdated`.

No issue was filed this was a minor rewording.
  • Loading branch information
davidhicks980 authored May 6, 2024
1 parent d4b2e5d commit d5f7013
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/flutter/lib/src/widgets/selectable_region.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1761,14 +1761,12 @@ class _SelectableRegionContainerDelegate extends MultiSelectableSelectionContain
}
}

/// An abstract base class for updating multiple [Selectable] children.
/// A delegate that handles events and updates for multiple [Selectable]
/// children.
///
/// This class provide basic [SelectionEvent] handling and child [Selectable]
/// updating. The subclass needs to implement [ensureChildUpdated] to ensure
/// child [Selectable] is updated properly.
///
/// This class optimize the selection update by keeping track of the
/// [Selectable]s that currently contain the selection edges.
/// Updates are optimized by tracking which [Selectable]s reside on the edges of
/// a selection. Subclasses should implement [ensureChildUpdated] to describe
/// how a [Selectable] should behave when added to a selection.
abstract class MultiSelectableSelectionContainerDelegate extends SelectionContainerDelegate with ChangeNotifier {
/// Creates an instance of [MultiSelectableSelectionContainerDelegate].
MultiSelectableSelectionContainerDelegate() {
Expand Down

0 comments on commit d5f7013

Please sign in to comment.