Skip to content
This repository was archived by the owner on May 20, 2023. It is now read-only.

Commit 99905b2

Browse files
matanlureynshahan
authored andcommitted
Remove the now unused SelectableWithComposition class, closing b/111665960.
PiperOrigin-RevId: 207011950
1 parent 40d3e3b commit 99905b2

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

lib/src/model/selection/interfaces/selectable.dart

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -115,24 +115,6 @@ abstract class Selectable<T> {
115115
SelectableOption getSelectable(T item) => SelectableOption.Selectable;
116116
}
117117

118-
/// Interface for determining if an entity [T] should be shown as selectable.
119-
///
120-
/// This interface serves the same purpose of Selectable<T>, except the
121-
/// getSelectable getter is a member instead of a method.
122-
///
123-
/// __Example use__:
124-
/// class MySelectionOptions = SelectionOptions with SelectableWithComposition;
125-
///
126-
/// **DEPRECATED**: The main purpose of this interface/class was to have an
127-
/// indentical API to [Selectable], but allow overriding the [getSelectable]
128-
/// implementation at runtime. Unfortunately this has caused many problems
129-
/// (b/111665960), and in practice users were using this interface but providing
130-
/// a static implementation.
131-
abstract class SelectableWithComposition<T> {
132-
/// Whether [item] should be shown as selectable.
133-
SelectableGetter<T> getSelectable = (T item) => SelectableOption.Selectable;
134-
}
135-
136118
/// An optional interface for describing why an item is/is not selectable.
137119
///
138120
/// __Example use__:

0 commit comments

Comments
 (0)