copyWith method

  1. @useResult
FAccordionStyle copyWith({
  1. TextStyle? titleTextStyle,
  2. TextStyle? childTextStyle,
  3. EdgeInsets? titlePadding,
  4. EdgeInsets? childPadding,
  5. Color? iconColor,
  6. double? iconSize,
  7. FDividerStyle? dividerStyle,
  8. Duration? animationDuration,
})

Returns a copy of this FAccordionStyle with the given properties replaced.

Implementation

@useResult
FAccordionStyle copyWith({
  TextStyle? titleTextStyle,
  TextStyle? childTextStyle,
  EdgeInsets? titlePadding,
  EdgeInsets? childPadding,
  Color? iconColor,
  double? iconSize,
  FDividerStyle? dividerStyle,
  Duration? animationDuration,
}) =>
    FAccordionStyle(
      titleTextStyle: titleTextStyle ?? this.titleTextStyle,
      childTextStyle: childTextStyle ?? this.childTextStyle,
      titlePadding: titlePadding ?? this.titlePadding,
      childPadding: childPadding ?? this.childPadding,
      iconColor: iconColor ?? this.iconColor,
      iconSize: iconSize ?? this.iconSize,
      dividerStyle: dividerStyle ?? this.dividerStyle,
      animationDuration: animationDuration ?? this.animationDuration,
    );