BorshEnum<T extends Enum> class

Enum

An annotation for enum data types.

@BorshEnum(MyEnum.values)
final MyEnum property;
Inheritance

Constructors

BorshEnum.new(List<T> values, [int? byteLength])
Creates an annotation for an enum data type.
const

Properties

byteLength int?
The encoded byte length.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<T>
The enum's variants.
final

Methods

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.
inherited