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. FFocusedOutlineStyle? focusedOutlineStyle,
  8. FDividerStyle? dividerStyle,
  9. 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,
  FFocusedOutlineStyle? focusedOutlineStyle,
  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,
      focusedOutlineStyle: focusedOutlineStyle ?? this.focusedOutlineStyle,
      dividerStyle: dividerStyle ?? this.dividerStyle,
      animationDuration: animationDuration ?? this.animationDuration,
    );