copyWith method
- @useResult
- IconThemeDataDelta? iconStyle,
- Widget upIcon(
- BuildContext, {
- String? semanticsLabel,
- Widget downIcon(
- BuildContext, {
- String? semanticsLabel,
- 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.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,
Widget Function(BuildContext, {String? semanticsLabel})? upIcon,
Widget Function(BuildContext, {String? semanticsLabel})? 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,
);