copyWith method
BaseRolloutStrategyAttribute
copyWith({
- RolloutStrategyAttributeConditional? conditional,
- String? fieldName,
- List? values,
- RolloutStrategyFieldType? type,
Implementation
BaseRolloutStrategyAttribute copyWith({
RolloutStrategyAttributeConditional? conditional,
String? fieldName,
List<dynamic>? values,
RolloutStrategyFieldType? type,
}) {
final _copy_conditional = conditional ?? this.conditional;
final _copy_fieldName = fieldName ?? this.fieldName;
final _copy_values = values ??
((List<dynamic> data) {
return data.toList();
}(this.values));
final _copy_type = type ?? this.type;
return BaseRolloutStrategyAttribute(
conditional: _copy_conditional,
fieldName: _copy_fieldName,
values: _copy_values,
type: _copy_type,
);
}