expect method

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

Throws an exception with a detailed message.

Implementation

@override
Never expect(String key, String expect, {int? id}) {
  var d = decoders[key] ?? decoders[id];
  return d!.clone().expect(expect);
}