Google is committed to advancing racial equity for Black communities. See how.

encode method

*<Null safety>*
  • @override

void encode (Encoder encoder, T? value, int offset) override

Implementation

@override
void encode(Encoder encoder, T? value, int offset) {
  if (value == null) {
    encoder.encodeUint64(0, offset);
    _encodeEnvelopeAbsent(encoder, offset + 8);
  } else {
    _encodeUnion(encoder, value, offset, members, flexible, resource);
  }
}