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