copyWith method
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,
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,
);
}