BitField<T extends dynamic> class

A BitField over an enum (or other class whose values implement "index"). Only the first 62 values of the enum can be used as indices.

When compiling to JavaScript, this class is not supported.


BitField(int _length)
Creates a bit field of all zeros. [...]
BitField.filled(int _length, bool value)
Creates a bit field filled with a particular value. [...]


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


reset([bool value = false ]) → void
Sets all the bits to the given value. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toString() String
Returns a string representation of this object.


operator [](T index) bool
Returns whether the bit with the given index is set to one.
operator []=(T index, bool value) → void
Sets the bit with the given index to the given value. [...]
operator ==(dynamic other) bool
The equality operator. [...]