copyWith method

AvailableWorkflowSystemRule copyWith({
  1. String? description,
  2. List<String>? incompatibleRuleKeys,
  3. bool? isAvailableForInitialTransition,
  4. bool? isVisible,
  5. String? name,
  6. String? ruleKey,
  7. AvailableWorkflowSystemRuleRuleType? ruleType,
})

Implementation

AvailableWorkflowSystemRule copyWith(
    {String? description,
    List<String>? incompatibleRuleKeys,
    bool? isAvailableForInitialTransition,
    bool? isVisible,
    String? name,
    String? ruleKey,
    AvailableWorkflowSystemRuleRuleType? ruleType}) {
  return AvailableWorkflowSystemRule(
    description: description ?? this.description,
    incompatibleRuleKeys: incompatibleRuleKeys ?? this.incompatibleRuleKeys,
    isAvailableForInitialTransition: isAvailableForInitialTransition ??
        this.isAvailableForInitialTransition,
    isVisible: isVisible ?? this.isVisible,
    name: name ?? this.name,
    ruleKey: ruleKey ?? this.ruleKey,
    ruleType: ruleType ?? this.ruleType,
  );
}