copyWith method
MExpandableThemeData
copyWith({
- Color? iconColor,
- bool? useInkWell,
- Duration? animationDuration,
- Duration? scrollAnimationDuration,
- double? crossFadePoint,
- AlignmentGeometry? alignment,
- Curve? fadeCurve,
- Curve? sizeCurve,
- MExpandablePanelHeaderAlignment? headerAlignment,
- MExpandablePanelBodyAlignment? bodyAlignment,
- MExpandablePanelIconPlacement? iconPlacement,
- bool? tapHeaderToExpand,
- bool? tapBodyToExpand,
- bool? tapBodyToCollapse,
- bool? hasIcon,
- double? iconSize,
- EdgeInsets? iconPadding,
- double? iconRotationAngle,
- IconData? expandIcon,
- IconData? collapseIcon,
- BorderRadius? inkWellBorderRadius,
- MExpandableTransition? transition,
- Clip? clipBehavior,
- Curve? opacityCurve,
Implementation
MExpandableThemeData copyWith({
Color? iconColor,
bool? useInkWell,
Duration? animationDuration,
Duration? scrollAnimationDuration,
double? crossFadePoint,
AlignmentGeometry? alignment,
Curve? fadeCurve,
Curve? sizeCurve,
MExpandablePanelHeaderAlignment? headerAlignment,
MExpandablePanelBodyAlignment? bodyAlignment,
MExpandablePanelIconPlacement? iconPlacement,
bool? tapHeaderToExpand,
bool? tapBodyToExpand,
bool? tapBodyToCollapse,
bool? hasIcon,
double? iconSize,
EdgeInsets? iconPadding,
double? iconRotationAngle,
IconData? expandIcon,
IconData? collapseIcon,
BorderRadius? inkWellBorderRadius,
MExpandableTransition? transition,
Clip? clipBehavior,
Curve? opacityCurve,
}) {
return MExpandableThemeData(
iconColor: iconColor ?? this.iconColor,
useInkWell: useInkWell ?? this.useInkWell,
inkWellBorderRadius: inkWellBorderRadius ?? this.inkWellBorderRadius,
animationDuration: animationDuration ?? this.animationDuration,
scrollAnimationDuration: scrollAnimationDuration ?? this.scrollAnimationDuration,
crossFadePoint: crossFadePoint ?? this.crossFadePoint,
fadeCurve: fadeCurve ?? this.fadeCurve,
sizeCurve: sizeCurve ?? this.sizeCurve,
alignment: alignment ?? this.alignment,
headerAlignment: headerAlignment ?? this.headerAlignment,
bodyAlignment: bodyAlignment ?? this.bodyAlignment,
iconPlacement: iconPlacement ?? this.iconPlacement,
tapHeaderToExpand: tapHeaderToExpand ?? this.tapHeaderToExpand,
tapBodyToExpand: tapBodyToExpand ?? this.tapBodyToExpand,
tapBodyToCollapse: tapBodyToCollapse ?? this.tapBodyToCollapse,
hasIcon: hasIcon ?? this.hasIcon,
iconSize: iconSize ?? this.iconSize,
iconPadding: iconPadding ?? this.iconPadding,
iconRotationAngle: iconRotationAngle ?? this.iconRotationAngle,
expandIcon: expandIcon ?? this.expandIcon,
collapseIcon: collapseIcon ?? this.collapseIcon,
transition: transition ?? this.transition,
clipBehavior: clipBehavior ?? this.clipBehavior,
opacityCurve: opacityCurve ?? this.opacityCurve,
);
}