Constant<T> class

Metadata represeting one pallet constant.

Constructors

Constant({required Codec<T> type, required Uint8List bytes, required List<String> docs})
Creates a constant object model
const

Properties

bytes Uint8List
Value stored in the constant (SCALE encoded).
final
docs List<String>
Documentation of the constant.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type → Codec<T>
The constant type codec suitable for decoding the constant bytes
final
value → T
Decoded constant value from the bytes using the type codec
no setter

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