HTError.ifBlock constructor

HTError.ifBlock({
  1. String? filename,
  2. int? line,
  3. int? column,
  4. int? offset,
  5. int? length,
})

Error: if statement's then and else should be both expression or both block

Implementation

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