copyWith method

  1. @useResult
FResizableDividerThumbStyle copyWith({
  1. Color? backgroundColor,
  2. Color? foregroundColor,
  3. double? height,
  4. double? width,
})

Returns a copy of this but with the given fields replaced with the new values.

Implementation

@useResult
FResizableDividerThumbStyle copyWith({
  Color? backgroundColor,
  Color? foregroundColor,
  double? height,
  double? width,
}) =>
    FResizableDividerThumbStyle(
      backgroundColor: backgroundColor ?? this.backgroundColor,
      foregroundColor: foregroundColor ?? this.foregroundColor,
      height: height ?? this.height,
      width: width ?? this.width,
    );