BitField<T extends dynamic> class Null safety

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.

Constructors

BitField(int length)
Creates a bit field of all zeros.
factory
BitField.filled(int length, bool value)
Creates a bit field filled with a particular value.
factory

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

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

Operators

operator ==(Object other) bool
The equality operator.
inherited
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.