copyWith method

  1. @useResult
FResizableDividerStyle copyWith({
  1. Color? color,
  2. double? width,
  3. FFocusedOutlineStyle focusedOutlineStyle(
    1. FFocusedOutlineStyle style
    )?,
  4. FResizableDividerThumbStyle thumbStyle(
    1. FResizableDividerThumbStyle style
    )?,
})

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

Consider using the CLI to generate a style.

Parameters

Implementation

@useResult
FResizableDividerStyle copyWith({
  Color? color,
  double? width,
  FFocusedOutlineStyle Function(FFocusedOutlineStyle style)? focusedOutlineStyle,
  FResizableDividerThumbStyle Function(FResizableDividerThumbStyle style)? thumbStyle,
}) => FResizableDividerStyle(
  color: color ?? this.color,
  width: width ?? this.width,
  focusedOutlineStyle: focusedOutlineStyle != null
      ? focusedOutlineStyle(this.focusedOutlineStyle)
      : this.focusedOutlineStyle,
  thumbStyle: thumbStyle != null ? thumbStyle(this.thumbStyle) : this.thumbStyle,
);