copyWith method
Returns a copy of this FSelectScrollHandleStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FSelectScrollHandleStyle.iconStyle - The handle icon's style.
- FSelectScrollHandleStyle.upIcon - The up scroll handle icon builder.
- FSelectScrollHandleStyle.downIcon - The down scroll handle icon builder.
- FSelectScrollHandleStyle.background - The background color.
- FSelectScrollHandleStyle.enterDuration - The duration to wait before scrolling.
- FSelectScrollHandleStyle.pixelsPerSecond - The number of pixels to scroll per second.
Implementation
@useResult
FSelectScrollHandleStyle copyWith({
IconThemeDataDelta? iconStyle,
FIcon? upIcon,
FIcon? downIcon,
Color? background,
Duration? enterDuration,
double? pixelsPerSecond,
}) => .new(
iconStyle: iconStyle?.call(this.iconStyle) ?? this.iconStyle,
upIcon: upIcon ?? this.upIcon,
downIcon: downIcon ?? this.downIcon,
background: background ?? this.background,
enterDuration: enterDuration ?? this.enterDuration,
pixelsPerSecond: pixelsPerSecond ?? this.pixelsPerSecond,
);