expect method

  1. @override
Never expect(
  1. String expected
)
override

Throws an exception with a detailed message.

Implementation

@override
Never expect(String expected) {
  throw CodableException.unexpectedType(
    expected: expected,
    actual: whatsNext().toString(),
    data: _unpacker._list,
    offset: _unpacker._offset,
  );
}