copyWith method

  1. @useResult
FResizableDividerThumbStyle copyWith({
  1. DecorationDelta? decoration,
  2. Color? foregroundColor,
  3. Widget icon(
    1. BuildContext, {
    2. String? semanticsLabel,
    })?,
  4. double? height,
  5. double? width,
})

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

See customizing widget styles.

Parameters

Implementation

@useResult
FResizableDividerThumbStyle copyWith({
  DecorationDelta? decoration,
  Color? foregroundColor,
  Widget Function(BuildContext, {String? semanticsLabel})? icon,
  double? height,
  double? width,
}) => .new(
  decoration: decoration?.call(this.decoration) ?? this.decoration,
  foregroundColor: foregroundColor ?? this.foregroundColor,
  icon: icon ?? this.icon,
  height: height ?? this.height,
  width: width ?? this.width,
);