copyWith method

ProjectFeature copyWith({
  1. String? feature,
  2. String? imageUri,
  3. String? localisedDescription,
  4. String? localisedName,
  5. List<String>? prerequisites,
  6. int? projectId,
  7. ProjectFeatureStateEnum? state,
  8. bool? toggleLocked,
})

Implementation

ProjectFeature copyWith(
    {String? feature,
    String? imageUri,
    String? localisedDescription,
    String? localisedName,
    List<String>? prerequisites,
    int? projectId,
    ProjectFeatureStateEnum? state,
    bool? toggleLocked}) {
  return ProjectFeature(
    feature: feature ?? this.feature,
    imageUri: imageUri ?? this.imageUri,
    localisedDescription: localisedDescription ?? this.localisedDescription,
    localisedName: localisedName ?? this.localisedName,
    prerequisites: prerequisites ?? this.prerequisites,
    projectId: projectId ?? this.projectId,
    state: state ?? this.state,
    toggleLocked: toggleLocked ?? this.toggleLocked,
  );
}