expect method

  1. @override
Never expect(
  1. String key,
  2. String expected, {
  3. int? id,
})
override

Throws an exception with a detailed message.

Implementation

@override
Never expect(String key, String expected, {int? id}) {
  throw CodableException.wrap(
    CodableException.unexpectedType(expected: expected, actual: '${_value[key].runtimeType}', data: _value[key]),
    method: 'decode',
    hint: '["$key"]',
  );
}