HTError.awaitWithoutAsync constructor

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

Error: Await appeared outside an async function.

Implementation

HTError.awaitWithoutAsync({
  String? extra,
  String? correction,
  String? filename,
  int? line,
  int? column,
  int? offset,
  int? length,
}) : this(
        HTErrorCode.awaitWithoutAsync,
        HTErrorType.syntacticError,
        message: HTLocale.current.errorAwaitWithoutAsync,
        extra: extra,
        correction: correction,
        filename: filename,
        line: line,
        column: column,
        offset: offset,
        length: length,
      );