encode method
Encode values with ABI rules based on the ABI type schemes @return byte[] of ABI encoding @throws IllegalArgumentException if encoder cannot infer the type from obj
Implementation
@override
Uint8List encode(dynamic obj) {
if (obj is! bool) {
throw ArgumentError('cannot infer type for boolean abi value encode');
}
return Uint8List.fromList([obj ? 0x80 : 0x00]);
}