copyWith method
- @useResult
- FWidgetStateMap<
TextStyle> ? titleTextStyle, - TextStyle? childTextStyle,
- EdgeInsetsGeometry? titlePadding,
- EdgeInsetsGeometry? childPadding,
- FWidgetStateMap<
IconThemeData> ? iconStyle, - FFocusedOutlineStyle focusedOutlineStyle(
- FFocusedOutlineStyle style
- FDividerStyle dividerStyle(
- FDividerStyle style
- FTappableStyle tappableStyle(
- FTappableStyle style
- FAccordionMotion motion(
- FAccordionMotion motion
Returns a copy of this FAccordionStyle with the given properties replaced.
Consider using the CLI to generate a style.
Parameters
- FAccordionStyle.titleTextStyle - The title's text style.
- FAccordionStyle.childTextStyle - The child's default text style.
- FAccordionStyle.titlePadding - The padding around the title.
- FAccordionStyle.childPadding - The padding around the content.
- FAccordionStyle.iconStyle - The icon's style.
- FAccordionStyle.focusedOutlineStyle - The focused outline style.
- FAccordionStyle.dividerStyle - The divider's color.
- FAccordionStyle.tappableStyle - The tappable's style.
- FAccordionStyle.motion - The motion-related properties.
Implementation
@useResult
FAccordionStyle copyWith({
FWidgetStateMap<TextStyle>? titleTextStyle,
TextStyle? childTextStyle,
EdgeInsetsGeometry? titlePadding,
EdgeInsetsGeometry? childPadding,
FWidgetStateMap<IconThemeData>? iconStyle,
FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
FDividerStyle Function(FDividerStyle style)? dividerStyle,
FTappableStyle Function(FTappableStyle style)? tappableStyle,
FAccordionMotion Function(FAccordionMotion motion)? motion,
}) => FAccordionStyle(
titleTextStyle: titleTextStyle ?? this.titleTextStyle,
childTextStyle: childTextStyle ?? this.childTextStyle,
titlePadding: titlePadding ?? this.titlePadding,
childPadding: childPadding ?? this.childPadding,
iconStyle: iconStyle ?? this.iconStyle,
focusedOutlineStyle: focusedOutlineStyle != null
? focusedOutlineStyle(this.focusedOutlineStyle)
: this.focusedOutlineStyle,
dividerStyle: dividerStyle != null ? dividerStyle(this.dividerStyle) : this.dividerStyle,
tappableStyle: tappableStyle != null ? tappableStyle(this.tappableStyle) : this.tappableStyle,
motion: motion != null ? motion(this.motion) : this.motion,
);