copyWith method

FeatureEnvironmentCollection copyWith({
  1. String? id,
  2. List<FeatureState>? features,
})

Implementation

FeatureEnvironmentCollection copyWith({
  String? id,
  List<FeatureState>? features,
}) {
  final _copy_id = id ?? this.id;

  final _copy_features = features ??
      ((List<FeatureState> data) {
        return data.map((data) => data.copyWith()).toList();
      }(this.features));

  return FeatureEnvironmentCollection(
    id: _copy_id,
    features: _copy_features,
  );
}