FourByteString class

A class representing a four-byte string.

Annotations
  • @immutable

Constructors

FourByteString(String string)
Creates a FourByteString from a given string. If the string length is not 4, it defaults to 0, 0, 0, 0.

Properties

bytes List<int>
The bytes representing the four-byte string.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encode() Uint8List
Encodes the four-byte string to a Uint8List.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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