copyWith method

  1. @useResult
FTileStyle copyWith({
  1. Border? border,
  2. Border? focusedBorder,
  3. BorderRadius? borderRadius,
  4. Color? enabledBackgroundColor,
  5. Color? enabledHoveredBackgroundColor,
  6. Color? disabledBackgroundColor,
  7. Duration? touchHoverEnterDuration,
  8. Duration? touchHoverExitDuration,
  9. FDividerStyle? dividerStyle,
  10. FDividerStyle? focusedDividerStyle,
  11. 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,
    );