Dart DocumentationutilsItemDefault<T>

ItemDefault<T> class

class ItemDefault<T> extends ItemOption<T>{
 final T _value;
 ItemDefault(this._value);
 T operator[](int i) => _value;
 /// do nothing
 operator[]=(int i, T v) {}
}

Extends

ItemOption<T> > ItemDefault<T>

Constructors

new ItemDefault(T _value) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
ItemDefault(this._value);

Operators

T operator [](int i) #

T operator[](int i) => _value;

dynamic operator []=(int i, T v) #

do nothing

operator[]=(int i, T v) {}