ProxyCodec class
A proxy codec that can be used to dynamically change the codec
This is useful when you want to use a codec that is not yet known and is calling itself recursively.
It helps to resolve the circular dependency.
'OrangeStruct': { 'value1': 'bool', 'value2': 'JuiceEnumComplex', },
'JuiceEnum': {
'_enum': 'Apple', 'Orange'
,
},
'JuiceEnumComplex': { '_enum': { 'Apple': 'U8', 'Orange': 'OrangeStruct', }, }
In above example, 'OrangeStruct' is calling 'JuiceEnumComplex' and 'JuiceEnumComplex' is calling 'OrangeStruct'.
- Mixed-in types
Constructors
Properties
Methods
-
decode(
Input input) → dynamic -
override
-
encode(
dynamic value) → Uint8List -
Convert self to an owned vector.
inherited
-
encodeTo(
dynamic value, Output output) → void -
Convert self to a slice and append it to the destination.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sizeHint(
dynamic value) → int -
If possible give a hint of expected size of the encoding.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited