HTError.outOfRange constructor

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

Error: Calling method on null object.

Implementation

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