copyWith method

  1. @useResult
FSelectScrollHandleStyle copyWith({
  1. IconThemeDataDelta? iconStyle,
  2. Widget upIcon(
    1. BuildContext, {
    2. String? semanticsLabel,
    })?,
  3. Widget downIcon(
    1. BuildContext, {
    2. String? semanticsLabel,
    })?,
  4. Color? background,
  5. Duration? enterDuration,
  6. double? pixelsPerSecond,
})

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

See customizing widget styles.

Parameters

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,
);