copyWith method

RectProperties copyWith({
  1. ResponsiveRect? rect,
  2. bool? flipRectWhileResizing,
  3. bool? flipChild,
  4. bool? constraintsEnabled,
  5. bool? resizable,
  6. bool? movable,
  7. bool? hideHandlesWhenNotResizable,
  8. ResponsiveAlignment? verticalAlign,
  9. ResponsiveAlignment? horizontalAlign,
})

Implementation

RectProperties copyWith({
  ResponsiveRect? rect,
  bool? flipRectWhileResizing,
  bool? flipChild,
  bool? constraintsEnabled,
  bool? resizable,
  bool? movable,
  bool? hideHandlesWhenNotResizable,
  ResponsiveAlignment? verticalAlign,
  ResponsiveAlignment? horizontalAlign,
}) {
  return RectProperties(
    rect: rect ?? this.rect,
    flipRectWhileResizing:
        flipRectWhileResizing ?? this.flipRectWhileResizing,
    flipChild: flipChild ?? this.flipChild,
    constraintsEnabled: constraintsEnabled ?? this.constraintsEnabled,
    resizable: resizable ?? this.resizable,
    movable: movable ?? this.movable,
    hideHandlesWhenNotResizable:
        hideHandlesWhenNotResizable ?? this.hideHandlesWhenNotResizable,
    verticalAlign: verticalAlign ?? this.verticalAlign,
    horizontalAlign: horizontalAlign ?? this.horizontalAlign,
  );
}