Codec<T> constructor

const Codec<T>(
  1. String sqlType,
  2. T _decode(
    1. Object? value
    ),
  3. Object? _encode(
    1. T value
    )
)

Creates an explicit storage codec; conversion errors propagate to callers.

Implementation

const Codec(this.sqlType, this._decode, this._encode) : _identity = null;