JSONASTException constructor

JSONASTException(
  1. String rawMessage,
  2. String? input,
  3. String source,
  4. int line,
  5. int column,
)

Implementation

JSONASTException(
    this.rawMessage, this.input, this.source, this.line, this.column) {
  if (input != null) {
    this._message = line != 0
        ? this.rawMessage + '\n' + codeErrorFragment(input!, line, column)
        : this.rawMessage;
  } else {
    this._message = rawMessage;
  }
}