AbiParameter class
Constructors
-
AbiParameter({required String? name, required String type, bool tronTypes = false, String? baseType, bool indexed = false, List<
AbiParameter> components = const [], String? internalType}) -
Constructor for AbiParameter.
const
-
AbiParameter.fromJson(Map<
String, dynamic> json, bool tronTypes) -
Factory method to create an AbiParameter instance from a JSON representation.
factory
Properties
- argName → String
-
Retrieves the argument name, considering tuple types.
no setter
- baseType → String?
-
The base type, if applicable.
final
-
components
→ List<
AbiParameter> -
List of components if the parameter is a composite type.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexed → bool
-
Flag indicating whether the parameter is indexed.
final
- internalType → String?
-
The internal type, if applicable.
final
- isDynamic → bool
-
Checks whether the ABI parameter is dynamic.
Dynamic parameters include strings, bytes, dynamic arrays, and tuples containing dynamic components.
no setter
- isTupple → bool
-
Checks if the parameter represents a tuple.
no setter
- name → String?
-
The name of the parameter.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tronTypes → bool
-
Flag indicating whether Tron types are used.
final
- type → String
-
The type of the parameter.
final
Methods
-
abiEncode(
dynamic value) → EncoderResult - Encodes the given value using the ABI encoding.
-
copyWith(
{String? name, String? type, String? baseType, bool? indexed, List< AbiParameter> ? components, String? internalType}) → AbiParameter - Creates a new AbiParameter instance with updated values. If a parameter is not specified in the copy, the current value is retained.
-
decode(
List< int> bytes) → DecoderResult - Decodes the byte array using the specified ABI decoding.
-
legacyEip712Encode(
dynamic value, bool keepSize) → EncoderResult - Encodes the given value using the specified ABI encoding.
-
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
Constants
- bytes → const AbiParameter
- Static constant representing an ABI parameter for generic bytes data.
- function → const AbiParameter
- Static constant representing an ABI parameter for a function signature (bytes24).
- uint32 → const AbiParameter
- Static constant representing an ABI parameter for a 32-bit unsigned integer.
- uint256 → const AbiParameter
- Static constant representing an ABI parameter for a 256-bit unsigned integer.