Bit class

Represents a binary vector, where each element is either true or false.

Available extensions

Constructors

Bit(List<bool> value)
Creates a Bit from a list of boolean values.
factory
Bit.fromBinary(Uint8List bytes)
Creates a Bit from its binary representation.
factory

Properties

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

Methods

clone() Bit

Available on Bit, provided by the CloneBit extension

Creates a deep copy of the Bit vector, mutations to the original will not affect the copy.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBinary() Uint8List
Converts the bit vector to its binary representation.
toJson() String

Available on Bit, provided by the BitJsonExtension extension

Returns a serialized version of the Bit as a String.
toList() List<bool>
Returns the bit vector as a list of boolean values.
toString() String
A string representation of this object.
override

Operators

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

Static Methods

fromString(String value) Bit
Creates a Bit from a string representation.