copyWith method
- @useResult
- IconThemeDataDelta? iconStyle,
- Color? background,
- Duration? enterDuration,
- double? pixelsPerSecond,
Returns a copy of this FSelectScrollHandleStyle with the given properties replaced.
See customizing widget styles.
Parameters
- FSelectScrollHandleStyle.iconStyle - The handle icon's style.
- 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,
Color? background,
Duration? enterDuration,
double? pixelsPerSecond,
}) => .new(
iconStyle: iconStyle?.call(this.iconStyle) ?? this.iconStyle,
background: background ?? this.background,
enterDuration: enterDuration ?? this.enterDuration,
pixelsPerSecond: pixelsPerSecond ?? this.pixelsPerSecond,
);