copyWith method

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

Implementation

FeatureResponseBeanFeaturesItem copyWith(
    {FeatureResponseBeanFeaturesItemBoardFeature? boardFeature,
    int? boardId,
    FeatureResponseBeanFeaturesItemState? state,
    String? localisedName,
    String? localisedDescription,
    String? learnMoreLink,
    String? imageUri,
    FeatureResponseBeanFeaturesItemFeatureType? featureType,
    String? localisedGroup,
    List<FeatureResponseBeanFeaturesItemPermissibleEstimationTypesItem>?
        permissibleEstimationTypes,
    String? featureId,
    String? learnMoreArticleId,
    bool? toggleLocked}) {
  return FeatureResponseBeanFeaturesItem(
    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,
  );
}