HTError.returnType constructor

HTError.returnType(
  1. String returnedType,
  2. String funcName,
  3. String declReturnType, {
  4. String? extra,
  5. String? correction,
  6. String? filename,
  7. int? line,
  8. int? column,
  9. int? offset,
  10. int? length,
})

Error: Return value type check failed.

Implementation

HTError.returnType(
    String returnedType, String funcName, String declReturnType,
    {String? extra,
    String? correction,
    String? filename,
    int? line,
    int? column,
    int? offset,
    int? length})
    : this(ErrorCode.returnType, ErrorType.staticTypeWarning,
          message: HTLocale.current.errorReturnType,
          interpolations: [returnedType, funcName, declReturnType],
          extra: extra,
          correction: correction,
          filename: filename,
          line: line,
          column: column,
          offset: offset,
          length: length);