copyWith method

  1. @useResult
FTileContentStyle copyWith({
  1. EdgeInsets? padding,
  2. double? prefixIconSpacing,
  3. double? titleSpacing,
  4. double? suffixIconSpacing,
  5. FTileContentStateStyle? enabledStyle,
  6. FTileContentStateStyle? enabledHoveredStyle,
  7. FTileContentStateStyle? disabledStyle,
})

Returns a copy of this FTileContentStyle with the given fields replaced with the new values.

Implementation

@useResult
FTileContentStyle copyWith({
  EdgeInsets? padding,
  double? prefixIconSpacing,
  double? titleSpacing,
  double? suffixIconSpacing,
  FTileContentStateStyle? enabledStyle,
  FTileContentStateStyle? enabledHoveredStyle,
  FTileContentStateStyle? disabledStyle,
}) =>
    FTileContentStyle(
      padding: padding ?? this.padding,
      prefixIconSpacing: prefixIconSpacing ?? this.prefixIconSpacing,
      titleSpacing: titleSpacing ?? this.titleSpacing,
      suffixIconSpacing: suffixIconSpacing ?? this.suffixIconSpacing,
      enabledStyle: enabledStyle ?? this.enabledStyle,
      enabledHoveredStyle: enabledHoveredStyle ?? this.enabledHoveredStyle,
      disabledStyle: disabledStyle ?? this.disabledStyle,
    );