unselect method
void
unselect(
- dynamic o
Change the option status to be unselected.
Which option to unselect can be defined by the index (String) or by the option (T
) object itself.
Will do nothing if mode is SelectionMode.single as you should just select another option when on this mode.
Implementation
void unselect(dynamic o) {
assert(o is String || o is T);
if (o is T) o = indexGetter(o);
if (mode == SelectionMode.single) return;
_selected.remove(o);
}