encodeTo method
Convert self to a slice and append it to the destination.
Implementation
@override
void encodeTo(E? value, Output output) {
if (value == null) {
output.pushByte(0);
} else {
output.pushByte(1);
subtypeCodec.encodeTo(value, output);
}
}