This repository was archived by the owner on May 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +0
-18
lines changed
lib/src/model/selection/interfaces Expand file tree Collapse file tree 1 file changed +0
-18
lines changed Original file line number Diff line number Diff 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__:
You can’t perform that action at this time.
0 commit comments