copyWith method

FeatureFlag copyWith({
  1. String? key,
  2. String? name,
  3. String? description,
  4. bool? isEnabled,
  5. String? category,
})

Create a copy with updated values.

Implementation

FeatureFlag copyWith({
  String? key,
  String? name,
  String? description,
  bool? isEnabled,
  String? category,
}) {
  return FeatureFlag(
    key: key ?? this.key,
    name: name ?? this.name,
    description: description ?? this.description,
    isEnabled: isEnabled ?? this.isEnabled,
    category: category ?? this.category,
  );
}