copyWith method
FastFormFieldDescriptor
copyWith({
- String? searchTitleText,
- String? captionText,
- String? labelText,
- String? searchPlaceholderText,
- String? placeholderText,
- bool? show,
- String itemLabelBuilder(
- dynamic
- String itemDescriptionBuilder(
- dynamic
override
Creates a copy of this TModel but with the given fields replaced with the new values.
For example:
var myModel2 = myModel1.copyWith(age: 42);
Implementation
@override
FastFormFieldDescriptor copyWith({
String? searchTitleText,
String? captionText,
String? labelText,
String? searchPlaceholderText,
String? placeholderText,
bool? show,
String Function(dynamic)? itemLabelBuilder,
String Function(dynamic)? itemDescriptionBuilder,
}) {
return FastFormFieldDescriptor(
searchTitleText: searchTitleText ?? this.searchTitleText,
captionText: captionText ?? this.captionText,
labelText: labelText ?? this.labelText,
searchPlaceholderText:
searchPlaceholderText ?? this.searchPlaceholderText,
placeholderText: placeholderText ?? this.placeholderText,
show: show ?? this.show,
itemLabelBuilder: itemLabelBuilder ?? this.itemLabelBuilder,
itemDescriptionBuilder:
itemDescriptionBuilder ?? this.itemDescriptionBuilder,
);
}