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.

Constructors

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.

Properties

hashCode int

Get a hash code for this object.

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

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 ==(other) bool

The equality operator.

inherited

Methods

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.

inherited
toString() String

Returns a string representation of this object.

inherited