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

decode method

*<Null safety>*
  • @override

T? decode (Decoder decoder, int offset) override

Implementation

@override
T? decode(Decoder decoder, int offset) {
  final int data = decoder.decodeUint64(offset);
  validateEncoded(data);
  if (data == kAllocAbsent) {
    return null;
  }
  T? decoded = element.decode(
      decoder, decoder.claimMemory(element.decodingInlineSize()));
  decoder.claimMemoryComplete();
  return decoded;
}