HTError.unexpectedToken constructor

HTError.unexpectedToken(
  1. String expected,
  2. String met, {
  3. String? extra,
  4. String? correction,
  5. String? filename,
  6. int? line,
  7. int? column,
  8. int? offset,
  9. int? length,
})

Error: Expected a token while met another.

Implementation

HTError.unexpectedToken(String expected, String met,
    {String? extra,
    String? correction,
    String? filename,
    int? line,
    int? column,
    int? offset,
    int? length})
    : this(ErrorCode.unexpected, ErrorType.syntacticError,
          message: HTLocale.current.errorUnexpectedToken,
          interpolations: [expected, met],
          extra: extra,
          correction: correction,
          filename: filename,
          line: line,
          column: column,
          offset: offset,
          length: length);