copyWith method

  1. @useResult
FAccordionStyle copyWith({
  1. FWidgetStateMap<TextStyle>? titleTextStyle,
  2. TextStyle? childTextStyle,
  3. EdgeInsetsGeometry? titlePadding,
  4. EdgeInsetsGeometry? childPadding,
  5. FWidgetStateMap<IconThemeData>? iconStyle,
  6. FFocusedOutlineStyle? focusedOutlineStyle,
  7. FDividerStyle? dividerStyle,
  8. Duration? animationDuration,
  9. FTappableStyle? tappableStyle,
})
inherited

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

Implementation

@useResult
FAccordionStyle copyWith({
  FWidgetStateMap<TextStyle>? titleTextStyle,
  TextStyle? childTextStyle,
  EdgeInsetsGeometry? titlePadding,
  EdgeInsetsGeometry? childPadding,
  FWidgetStateMap<IconThemeData>? iconStyle,
  FFocusedOutlineStyle? focusedOutlineStyle,
  FDividerStyle? dividerStyle,
  Duration? animationDuration,
  FTappableStyle? tappableStyle,
}) => FAccordionStyle(
  titleTextStyle: titleTextStyle ?? this.titleTextStyle,
  childTextStyle: childTextStyle ?? this.childTextStyle,
  titlePadding: titlePadding ?? this.titlePadding,
  childPadding: childPadding ?? this.childPadding,
  iconStyle: iconStyle ?? this.iconStyle,
  focusedOutlineStyle: focusedOutlineStyle ?? this.focusedOutlineStyle,
  dividerStyle: dividerStyle ?? this.dividerStyle,
  animationDuration: animationDuration ?? this.animationDuration,
  tappableStyle: tappableStyle ?? this.tappableStyle,
);