Honoring Asian Pacific American Heritage Month. See how.

decode method

  • @override

String decode (Decoder decoder, int offset, int depth)

override

Implementation

@override
String? decode(Decoder decoder, int offset, int depth) {
  String? value = _decodeString(decoder, offset, depth);
  if (value != null) {
    _throwIfExceedsLimit(
        value.length, maybeElementCount, FidlErrorCode.fidlStringTooLong);
  }
  return value;
}