copyWith method
ComponentsConfiguration<T>
copyWith({
- SearchFieldComponent? searchFieldComponent,
- TriggerComponent? triggerComponent,
- TriggerFromItemComponent<
T> ? triggerFromItemComponent, - SearchingIndicatorComponent? searchingIndicatorComponent,
- AnimationComponent? animationComponent,
- ListViewComponent? listViewComponent,
- SearchBarComponent? searchBarComponent,
Returns a ComponentsConfiguration constructed from the values of this, overwritten by the non-null arguments passed to the method.
Implementation
ComponentsConfiguration<T> copyWith({
SearchFieldComponent? searchFieldComponent,
TriggerComponent? triggerComponent,
MenuComponent? menuComponent,
MenuPositionAndSizeComponent? menuPositionAndSizeComponent,
TriggerFromItemComponent<T>? triggerFromItemComponent,
SearchingIndicatorComponent? searchingIndicatorComponent,
AnimationComponent? animationComponent,
ListViewComponent? listViewComponent,
SearchBarComponent? searchBarComponent,
MenuFlexValues? menuFlexValues,
MenuSizeConfiguration? menuSizeConfiguration,
MenuAnimationDurations? menuAnimationDurations,
MenuAnimationCurves? menuAnimationCurves,
}) {
return ComponentsConfiguration<T>(
triggerComponent: triggerComponent ?? this.triggerComponent,
triggerFromItemComponent:
triggerFromItemComponent ?? this.triggerFromItemComponent,
menuComponent: menuComponent ?? this.menuComponent,
menuPositionAndSizeComponent:
menuPositionAndSizeComponent ?? this.menuPositionAndSizeComponent,
searchFieldComponent: searchFieldComponent ?? this.searchFieldComponent,
searchingIndicatorComponent:
searchingIndicatorComponent ?? this.searchingIndicatorComponent,
animationComponent: animationComponent ?? this.animationComponent,
listViewComponent: listViewComponent ?? this.listViewComponent,
searchBarComponent: searchBarComponent ?? this.searchBarComponent,
menuFlexValues: menuFlexValues ?? this.menuFlexValues,
menuSizeConfiguration:
menuSizeConfiguration ?? this.menuSizeConfiguration,
menuAnimationDurations:
menuAnimationDurations ?? this.menuAnimationDurations,
menuAnimationCurves: menuAnimationCurves ?? this.menuAnimationCurves,
);
}