copyWith method

Feature copyWith({
  1. String? key,
  2. FeatureType? type,
  3. FeatureValueType? valueType,
  4. String? title,
  5. String? description,
  6. String? remoteSourceKey,
  7. Object? value,
  8. Object? defaultValue,
})

Implementation

Feature copyWith({
  String? key,
  FeatureType? type,
  FeatureValueType? valueType,
  String? title,
  String? description,
  String? remoteSourceKey,
  Object? value,
  Object? defaultValue,
}) {
  return Feature(
    key: key ?? this.key,
    type: type ?? this.type,
    valueType: valueType ?? this.valueType,
    title: title ?? this.title,
    description: description ?? this.description,
    remoteSourceKey: remoteSourceKey ?? this.remoteSourceKey,
    value: value ?? this.value,
    defaultValue: defaultValue ?? this.defaultValue,
  );
}