EnumTypeDefinition typedef
Enum type definition. Used as input format in BcsConfig.types
as well as an argument type for bcs.registerEnumType
.
Value can be either string
when invariant has a type or null
when invariant is empty.
bcs.registerEnumType('Option<T>', {
'some': 'T',
'none': null
});
Implementation
typedef EnumTypeDefinition = Map<String, dynamic>;