encode method
Encodes a value of this type.
Implementation
@override
Uint8List encode(dynamic value) {
final str = value as String;
// Solidity ABI specification requires UTF-8 encoding for strings
final bytes = Uint8List.fromList(utf8.encode(str));
return AbiBytes().encode(bytes);
}