copyWith method

ComponentsConfiguration<T> copyWith({
  1. SearchFieldComponent? searchFieldComponent,
  2. TriggerComponent? triggerComponent,
  3. MenuComponent? menuComponent,
  4. MenuPositionAndSizeComponent? menuPositionAndSizeComponent,
  5. TriggerFromItemComponent<T>? triggerFromItemComponent,
  6. SearchingIndicatorComponent? searchingIndicatorComponent,
  7. AnimationComponent? animationComponent,
  8. ListViewComponent? listViewComponent,
  9. SearchBarComponent? searchBarComponent,
  10. MenuFlexValues? menuFlexValues,
  11. MenuSizeConfiguration? menuSizeConfiguration,
  12. MenuAnimationDurations? menuAnimationDurations,
  13. MenuAnimationCurves? menuAnimationCurves,
})

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