CodecException.typeMismatch constructor

CodecException.typeMismatch(
  1. Type expected,
  2. Type actual,
  3. String? name
)

Implementation

CodecException.typeMismatch(Type expected, Type actual, String? name)
    : super(
          'Mismatching types${name == null ? '' : ' for property "$name"'}: Expected $expected but received $actual.');