HeaderCodec constructor

const HeaderCodec({
  1. required FullType specifiedType,
  2. bool explode = false,
})

Creates a HeaderCodec for the given specifiedType and encoding format (explode).

The specifiedType is needed to revive the value when in the decoder.

Implementation

const HeaderCodec({
  required this.specifiedType,
  this.explode = false,
});