copyWith method

MExpandableThemeData copyWith({
  1. Color? iconColor,
  2. bool? useInkWell,
  3. Duration? animationDuration,
  4. Duration? scrollAnimationDuration,
  5. double? crossFadePoint,
  6. AlignmentGeometry? alignment,
  7. Curve? fadeCurve,
  8. Curve? sizeCurve,
  9. MExpandablePanelHeaderAlignment? headerAlignment,
  10. MExpandablePanelBodyAlignment? bodyAlignment,
  11. MExpandablePanelIconPlacement? iconPlacement,
  12. bool? tapHeaderToExpand,
  13. bool? tapBodyToExpand,
  14. bool? tapBodyToCollapse,
  15. bool? hasIcon,
  16. double? iconSize,
  17. EdgeInsets? iconPadding,
  18. double? iconRotationAngle,
  19. IconData? expandIcon,
  20. IconData? collapseIcon,
  21. BorderRadius? inkWellBorderRadius,
  22. MExpandableTransition? transition,
  23. Clip? clipBehavior,
  24. 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,
  );
}