toDart method
TypeReference
toDart()
Implementation
TypeReference toDart() {
if (this is AddressType) {
return ethereumAddress;
} else if (this is UintType || this is IntType) {
return bigInt;
} else if (this is StringType) {
return string;
} else if (this is BoolType) {
return dartBool;
} else if (this is FixedBytes || this is DynamicBytes) {
return uint8List;
} else if (this is StringType) {
return string;
} else if (this is BaseArrayType) {
return listify((this as BaseArrayType).type.toDart());
} else {
return dynamicType;
}
}