encodeTo method
Convert self to a slice and append it to the destination.
Implementation
@override
void encodeTo(
ChainType value,
Output output,
) {
switch (value.runtimeType) {
case const (Development):
(value as Development).encodeTo(output);
break;
case const (Local):
(value as Local).encodeTo(output);
break;
case const (Live):
(value as Live).encodeTo(output);
break;
case const (Custom):
(value as Custom).encodeTo(output);
break;
default:
throw Exception('ChainType: Unsupported "$value" of type "${value.runtimeType}"');
}
}