MixProtocolStylerBranch<T extends Object> constructor

const MixProtocolStylerBranch<T extends Object>({
  1. required String name,
  2. required MixProtocolStylerCodec<T> codec(
    1. MixProtocolBranchContext context
    ),
})

Creates a branch whose full discriminator is derived from its vocabulary.

Implementation

const MixProtocolStylerBranch({
  required this.name,
  required MixProtocolStylerCodec<T> Function(
    MixProtocolBranchContext context,
  )
  codec,
}) : _codec = codec;