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

decode method

*<Null safety>*
  • @override

T? decode (Decoder decoder, int offset, int depth) override

Implementation

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