copyWith method

FeatureBean copyWith({
  1. FeatureBeanBoardFeature? boardFeature,
  2. int? boardId,
  3. FeatureBeanState? state,
  4. String? localisedName,
  5. String? localisedDescription,
  6. String? learnMoreLink,
  7. String? imageUri,
  8. FeatureBeanFeatureType? featureType,
  9. String? localisedGroup,
  10. List<FeatureBeanPermissibleEstimationTypesItem>? permissibleEstimationTypes,
  11. String? featureId,
  12. String? learnMoreArticleId,
  13. bool? toggleLocked,
})

Implementation

FeatureBean copyWith(
    {FeatureBeanBoardFeature? boardFeature,
    int? boardId,
    FeatureBeanState? state,
    String? localisedName,
    String? localisedDescription,
    String? learnMoreLink,
    String? imageUri,
    FeatureBeanFeatureType? featureType,
    String? localisedGroup,
    List<FeatureBeanPermissibleEstimationTypesItem>?
        permissibleEstimationTypes,
    String? featureId,
    String? learnMoreArticleId,
    bool? toggleLocked}) {
  return FeatureBean(
    boardFeature: boardFeature ?? this.boardFeature,
    boardId: boardId ?? this.boardId,
    state: state ?? this.state,
    localisedName: localisedName ?? this.localisedName,
    localisedDescription: localisedDescription ?? this.localisedDescription,
    learnMoreLink: learnMoreLink ?? this.learnMoreLink,
    imageUri: imageUri ?? this.imageUri,
    featureType: featureType ?? this.featureType,
    localisedGroup: localisedGroup ?? this.localisedGroup,
    permissibleEstimationTypes:
        permissibleEstimationTypes ?? this.permissibleEstimationTypes,
    featureId: featureId ?? this.featureId,
    learnMoreArticleId: learnMoreArticleId ?? this.learnMoreArticleId,
    toggleLocked: toggleLocked ?? this.toggleLocked,
  );
}