copyWith method

  1. @useResult
FSelectScrollHandleStyle copyWith({
  1. IconThemeData? iconStyle,
  2. Color? background,
  3. Duration? enterDuration,
  4. double? pixelsPerSecond,
})

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

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

iconStyle

The handle icon's style.

background

The background color.

enterDuration

The duration to wait before scrolling. Defaults to 200ms.

pixelsPerSecond

The number of pixels to scroll per second. Defaults to 200.

Contract

Throws an AssertionError if the pixels per second <= 0.

Implementation

@useResult
FSelectScrollHandleStyle copyWith({
  IconThemeData? iconStyle,
  Color? background,
  Duration? enterDuration,
  double? pixelsPerSecond,
}) => FSelectScrollHandleStyle(
  iconStyle: iconStyle ?? this.iconStyle,
  background: background ?? this.background,
  enterDuration: enterDuration ?? this.enterDuration,
  pixelsPerSecond: pixelsPerSecond ?? this.pixelsPerSecond,
);