HTError.typeCast constructor

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

Error: Illegal type cast.

Implementation

HTError.typeCast(String from, String to,
    {String? extra,
    String? correction,
    String? filename,
    int? line,
    int? column,
    int? offset,
    int? length})
    : this(ErrorCode.typeCast, ErrorType.staticTypeWarning,
          message: HTLocale.current.errorTypeCast,
          interpolations: [from, to],
          extra: extra,
          correction: correction,
          filename: filename,
          line: line,
          column: column,
          offset: offset,
          length: length);