copyWith method

Feature<T> copyWith({
  1. String? key,
  2. FeatureType? type,
  3. String? title,
  4. String? description,
  5. String? remoteSourceKey,
  6. T? defaultValue,
})

Implementation

Feature<T> copyWith({
  String? key,
  FeatureType? type,
  String? title,
  String? description,
  String? remoteSourceKey,
  T? defaultValue,
}) {
  return Feature(
    key: key ?? this.key,
    type: type ?? this.type,
    title: title ?? this.title,
    description: description ?? this.description,
    remoteSourceKey: remoteSourceKey ?? this.remoteSourceKey,
    defaultValue: defaultValue ?? this.defaultValue,
  );
}