BorshOption<T> class
Option
An annotation for optional values.
@BorshOption(BorshInt64())
final int? property;
- Inheritance
-
- Object
- BorshAnnotation<
T?> - BorshOption
Constructors
-
BorshOption.new(BorshAnnotation<
T> subtype, [BorshOptionType? type]) -
Creates an annotation for an optional value.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subtype
→ BorshAnnotation<
T> -
The data type's annotation.
finalinherited
- type → BorshOptionType?
-
The option type (default: BorshOptionType.rust).
finalinherited
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