copyWith method
- @useResult
- Border? border,
- Border? focusedBorder,
- BorderRadius? borderRadius,
- Color? enabledBackgroundColor,
- Color? enabledHoveredBackgroundColor,
- Color? disabledBackgroundColor,
- Duration? touchHoverEnterDuration,
- Duration? touchHoverExitDuration,
- FDividerStyle? dividerStyle,
- FDividerStyle? focusedDividerStyle,
- FTileContentStyle? contentStyle,
Returns a copy of this FTileStyle with the given fields replaced with the new values.
Implementation
@useResult
FTileStyle copyWith({
Border? border,
Border? focusedBorder,
BorderRadius? borderRadius,
Color? enabledBackgroundColor,
Color? enabledHoveredBackgroundColor,
Color? disabledBackgroundColor,
Duration? touchHoverEnterDuration,
Duration? touchHoverExitDuration,
FDividerStyle? dividerStyle,
FDividerStyle? focusedDividerStyle,
FTileContentStyle? contentStyle,
}) =>
FTileStyle(
border: border ?? this.border,
focusedBorder: focusedBorder ?? this.focusedBorder,
borderRadius: borderRadius ?? this.borderRadius,
enabledBackgroundColor: enabledBackgroundColor ?? this.enabledBackgroundColor,
enabledHoveredBackgroundColor: enabledHoveredBackgroundColor ?? this.enabledHoveredBackgroundColor,
disabledBackgroundColor: disabledBackgroundColor ?? this.disabledBackgroundColor,
touchHoverEnterDuration: touchHoverEnterDuration ?? this.touchHoverEnterDuration,
touchHoverExitDuration: touchHoverExitDuration ?? this.touchHoverExitDuration,
dividerStyle: dividerStyle ?? this.dividerStyle,
focusedDividerStyle: focusedDividerStyle ?? this.focusedDividerStyle,
contentStyle: contentStyle ?? this.contentStyle,
);