copyWith method

DisplayConditionsModel copyWith({
  1. PrivilegeLevelRequired? privilegeLevelRequired,
  2. String? packageCondition,
  3. ConditionOverride? conditionOverride,
})

Implementation

DisplayConditionsModel copyWith({
  PrivilegeLevelRequired? privilegeLevelRequired,
  String? packageCondition,
  ConditionOverride? conditionOverride,
}) {
  return DisplayConditionsModel(
    privilegeLevelRequired:
        privilegeLevelRequired ?? this.privilegeLevelRequired,
    packageCondition: packageCondition ?? this.packageCondition,
    conditionOverride: conditionOverride ?? this.conditionOverride,
  );
}