getErrorMessage method

  1. @override
ErrorMessage getErrorMessage(
  1. Object? input,
  2. int? offset
)
override

Implementation

@override
ErrorMessage getErrorMessage(Object? input, int? offset) {
  final value = ParseError.escape(char);
  final hexValue = char.toRadixString(16);
  final argument = '$value (0x$hexValue)';
  return ErrorMessage(0, ErrorExpectedCharacter.message, [argument]);
}