HTError.defined constructor

HTError.defined(
  1. String id,
  2. ErrorType type, {
  3. String? extra,
  4. String? correction,
  5. String? filename,
  6. int? line,
  7. int? column,
  8. int? offset,
  9. int? length,
})

Error: A same name declaration is already existed.

Implementation

HTError.defined(String id, ErrorType type,
    {String? extra,
    String? correction,
    String? filename,
    int? line,
    int? column,
    int? offset,
    int? length})
    : this(ErrorCode.defined, type,
          message: HTLocale.current.errorDefined,
          interpolations: [id],
          extra: extra,
          correction: correction,
          filename: filename,
          line: line,
          column: column,
          offset: offset,
          length: length);