copyWith method

JiraExpressionAnalysis copyWith({
  1. JiraExpressionComplexity? complexity,
  2. List<JiraExpressionValidationError>? errors,
  3. String? expression,
  4. String? type,
  5. bool? valid,
})

Implementation

JiraExpressionAnalysis copyWith(
    {JiraExpressionComplexity? complexity,
    List<JiraExpressionValidationError>? errors,
    String? expression,
    String? type,
    bool? valid}) {
  return JiraExpressionAnalysis(
    complexity: complexity ?? this.complexity,
    errors: errors ?? this.errors,
    expression: expression ?? this.expression,
    type: type ?? this.type,
    valid: valid ?? this.valid,
  );
}