AbiFixedBytes class
Fixed-size bytes type (bytes1 to bytes32).
Constructors
- AbiFixedBytes(int length)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDynamic → bool
-
Whether this type is dynamic (variable length).
no setteroverride
- length → int
-
final
- name → String
-
The Solidity type name (e.g., "uint256", "address").
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
decode(
Uint8List data, int offset) → (dynamic, int) -
Decodes a value of this type from data at the given offset.
Returns the decoded value and the number of bytes consumed.
override
-
encode(
dynamic value) → Uint8List -
Encodes a value of this type.
override
-
getStaticSize(
) → int -
Returns the static size in bytes for encoding.
For dynamic types, this returns 32 (the offset pointer size).
For static types, this returns the actual encoded size.
inherited
-
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