copyWith method

Feature copyWith({
  1. int? id,
  2. String? name,
  3. DateTime? createdDate,
  4. String? initialValue,
  5. bool? defaultValue,
  6. String? description,
})

Implementation

Feature copyWith({
  int? id,
  String? name,
  DateTime? createdDate,
  String? initialValue,
  bool? defaultValue,
  String? description,
}) =>
    Feature(
      id: id ?? this.id,
      name: name ?? this.name,
      createdDate: createdDate ?? this.createdDate,
      initialValue: initialValue ?? this.initialValue,
      defaultValue: defaultValue ?? this.defaultValue,
      description: description ?? this.description,
    );