copyWith method

  1. @override
FastFeatureEntity copyWith({
  1. String? name,
  2. bool? isEnabled,
})
override

Creates a copy of this TModel but with the given fields replaced with the new values.

For example:

var myModel2 = myModel1.copyWith(age: 42);

Implementation

@override
FastFeatureEntity copyWith({
  String? name,
  bool? isEnabled,
}) =>
    FastFeatureEntity(
      isEnabled: isEnabled ?? this.isEnabled,
      name: name ?? this.name,
    );