copyWith method

  1. @override
M3ECarouselTheme copyWith({
  1. double? uncontainedItemExtent,
  2. double? uncontainedShrinkExtent,
  3. double? borderRadiusValue,
  4. int? scrollAnimationDuration,
  5. int? singleSwipeGestureSensitivityRange,
  6. EdgeInsetsGeometry? itemPadding,
  7. double? elevation,
  8. Clip? itemClipBehavior,
  9. double? outlineWidth,
  10. double? hoverElevation,
  11. double? focusThickness,
  12. double? focusOffset,
  13. double? hoverStateOpacity,
  14. double? focusStateOpacity,
  15. double? pressedStateOpacity,
  16. double? disabledOpacity,
  17. double? disabledOutlineOpacity,
  18. double? smallMinWidth,
  19. double? smallMaxWidth,
  20. double? largeMaxWidth,
  21. double? itemGap,
  22. double? fullScreenGap,
  23. double? showAllGap,
  24. double? showAllPadding,
  25. double? headerInset,
  26. double? arrowSize,
  27. double? expandedBreakpoint,
  28. double? minAspect,
  29. double? maxAspect,
  30. double? fullScreenRadius,
})
override

Returns a copy with non-null fields replaced.

Implementation

@override
M3ECarouselTheme copyWith({
  double? uncontainedItemExtent,
  double? uncontainedShrinkExtent,
  double? borderRadiusValue,
  int? scrollAnimationDuration,
  int? singleSwipeGestureSensitivityRange,
  EdgeInsetsGeometry? itemPadding,
  double? elevation,
  Clip? itemClipBehavior,
  double? outlineWidth,
  double? hoverElevation,
  double? focusThickness,
  double? focusOffset,
  double? hoverStateOpacity,
  double? focusStateOpacity,
  double? pressedStateOpacity,
  double? disabledOpacity,
  double? disabledOutlineOpacity,
  double? smallMinWidth,
  double? smallMaxWidth,
  double? largeMaxWidth,
  double? itemGap,
  double? fullScreenGap,
  double? showAllGap,
  double? showAllPadding,
  double? headerInset,
  double? arrowSize,
  double? expandedBreakpoint,
  double? minAspect,
  double? maxAspect,
  double? fullScreenRadius,
}) {
  return M3ECarouselTheme(
    uncontainedItemExtent:
        uncontainedItemExtent ?? this.uncontainedItemExtent,
    uncontainedShrinkExtent:
        uncontainedShrinkExtent ?? this.uncontainedShrinkExtent,
    borderRadiusValue: borderRadiusValue ?? this.borderRadiusValue,
    scrollAnimationDuration:
        scrollAnimationDuration ?? this.scrollAnimationDuration,
    singleSwipeGestureSensitivityRange:
        singleSwipeGestureSensitivityRange ??
        this.singleSwipeGestureSensitivityRange,
    itemPadding: itemPadding ?? this.itemPadding,
    elevation: elevation ?? this.elevation,
    itemClipBehavior: itemClipBehavior ?? this.itemClipBehavior,
    outlineWidth: outlineWidth ?? this.outlineWidth,
    hoverElevation: hoverElevation ?? this.hoverElevation,
    focusThickness: focusThickness ?? this.focusThickness,
    focusOffset: focusOffset ?? this.focusOffset,
    hoverStateOpacity: hoverStateOpacity ?? this.hoverStateOpacity,
    focusStateOpacity: focusStateOpacity ?? this.focusStateOpacity,
    pressedStateOpacity: pressedStateOpacity ?? this.pressedStateOpacity,
    disabledOpacity: disabledOpacity ?? this.disabledOpacity,
    disabledOutlineOpacity:
        disabledOutlineOpacity ?? this.disabledOutlineOpacity,
    smallMinWidth: smallMinWidth ?? this.smallMinWidth,
    smallMaxWidth: smallMaxWidth ?? this.smallMaxWidth,
    largeMaxWidth: largeMaxWidth ?? this.largeMaxWidth,
    itemGap: itemGap ?? this.itemGap,
    fullScreenGap: fullScreenGap ?? this.fullScreenGap,
    showAllGap: showAllGap ?? this.showAllGap,
    showAllPadding: showAllPadding ?? this.showAllPadding,
    headerInset: headerInset ?? this.headerInset,
    arrowSize: arrowSize ?? this.arrowSize,
    expandedBreakpoint: expandedBreakpoint ?? this.expandedBreakpoint,
    minAspect: minAspect ?? this.minAspect,
    maxAspect: maxAspect ?? this.maxAspect,
    fullScreenRadius: fullScreenRadius ?? this.fullScreenRadius,
  );
}