copyWith method

  1. @override
FastFormFieldDescriptor copyWith({
  1. String? searchTitleText,
  2. String? captionText,
  3. String? labelText,
  4. String? searchPlaceholderText,
  5. String? placeholderText,
  6. bool? show,
  7. String itemLabelBuilder(
    1. dynamic
    )?,
  8. String itemDescriptionBuilder(
    1. 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,
  );
}