BorshTuple class
Tuple
An annotation for fixed-length arrays with multiple data types.
@BorshTuple([BorshUint8(), BorshFloat64(), BorshBool()])
final List property; // [1, 2.0, true]
- Inheritance
-
- Object
- BorshAnnotation<
Tuple> - BorshTuple
Constructors
-
BorshTuple.new(List<
BorshAnnotation> fields) -
Creates an annotation for a fixed-length array with multiple data types.
const
Properties
-
fields
→ List<
BorshAnnotation> -
The field type annotations.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- length → int
-
The number of items in the tuple.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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