PatternMatchDecoderEntry<TTo> typedef

PatternMatchDecoderEntry<TTo> = (bool Function(Uint8List bytes), Decoder<TTo>)

A pattern entry for getPatternMatchDecoder: a byte predicate and a decoder.

Implementation

typedef PatternMatchDecoderEntry<TTo> = (
  bool Function(Uint8List bytes) predicate,
  Decoder<TTo> decoder,
);