Codec<T> constructor

const Codec<T>({
  1. required Uint8List encode(
    1. T message
    ),
  2. required T decode(
    1. Uint8List bytes
    ),
})

Implementation

const Codec({required this.encode, required this.decode});