copyWith method

  1. @useResult
FSliderThumbStyle copyWith({
  1. FWidgetStateMap<Color>? color,
  2. FWidgetStateMap<Color>? borderColor,
  3. double? borderWidth,
  4. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle style
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FSliderThumbStyle copyWith({
  FWidgetStateMap<Color>? color,
  FWidgetStateMap<Color>? borderColor,
  double? borderWidth,
  FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
}) => FSliderThumbStyle(
  color: color ?? this.color,
  borderColor: borderColor ?? this.borderColor,
  borderWidth: borderWidth ?? this.borderWidth,
  focusedOutlineStyle: focusedOutlineStyle != null
      ? focusedOutlineStyle(this.focusedOutlineStyle)
      : this.focusedOutlineStyle,
);