Selectable<T> class abstract

Interface for determining if an entity T should be shown as selectable.

This interface is designed to allow metadata to determine if in a given list of selectable entities if certain entities should be shown to the user but not be selectable themselves within the UI.

Example use: class MySelectionOptions = SelectionOptions with Selectable;

Implementers

Constructors

Selectable()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getSelectable(T item) SelectableOption
Whether item should be shown as selectable.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

filterWhereSelectable<T>(Object isMaybeModel, [bool defaultIfMissingInterface = true]) bool Function(T)
Returns a filter function based on item being selectable.
getOptionIn<T>(Object isMaybeModel, T item, [SelectableOption defaultIfMissingInterface = SelectableOption.Selectable]) SelectableOption
Returns the selectability of option item in isMaybeModel.
isDisabledIn<T>(Object model, T item, [bool defaultIfMissingInterface = false]) bool
Returns whether model has item as a SelectableOption.Disabled.
isHiddenIn<T>(Object? model, T item, [bool defaultIfMissingInterface = false]) bool
Returns whether model has item as a SelectableOption.Hidden.
isSelectableIn<T>(Object? model, T item, [bool defaultIfMissingInterface = true]) bool
Returns whether model has item as a SelectableOption.Selectable.