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) {
    _message = line != 0
        ? '$rawMessage\n${codeErrorFragment(input!, line!, column!)}'
        : rawMessage;
  } else {
    _message = rawMessage;
  }
}