copyWith method
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,
);
}