copyWith method

  1. @useResult
FResizableDividerThumbStyle copyWith({
  1. BoxDecoration? decoration,
  2. Color? foregroundColor,
  3. double? height,
  4. double? width,
})

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

Where possible, it is strongly recommended to use the CLI to generate a style and directly modify the style.

decoration

The background color.

foregroundColor

The foreground color.

height

The height.

Contract

Throws AssertionError if height] <= 0.

width

The width.

Contract

Throws AssertionError if width <= 0.

Implementation

@useResult
FResizableDividerThumbStyle copyWith({
  BoxDecoration? decoration,
  Color? foregroundColor,
  double? height,
  double? width,
}) => FResizableDividerThumbStyle(
  decoration: decoration ?? this.decoration,
  foregroundColor: foregroundColor ?? this.foregroundColor,
  height: height ?? this.height,
  width: width ?? this.width,
);