copyWith method

ResizerTheme copyWith({
  1. double? handleSize,
  2. Color? color,
  3. Color? borderColor,
  4. double? borderWidth,
  5. double? snapDistance,
})

Creates a copy of this theme with the given fields replaced.

Implementation

ResizerTheme copyWith({
  double? handleSize,
  Color? color,
  Color? borderColor,
  double? borderWidth,
  double? snapDistance,
}) {
  return ResizerTheme(
    handleSize: handleSize ?? this.handleSize,
    color: color ?? this.color,
    borderColor: borderColor ?? this.borderColor,
    borderWidth: borderWidth ?? this.borderWidth,
    snapDistance: snapDistance ?? this.snapDistance,
  );
}