HTError.immutable constructor

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

Error: Try to assign a immutable variable.

Implementation

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