copyWith method
RectProperties
copyWith({
- ResponsiveRect? rect,
- bool? flipRectWhileResizing,
- bool? flipChild,
- bool? constraintsEnabled,
- bool? resizable,
- bool? movable,
- bool? hideHandlesWhenNotResizable,
- ResponsiveAlignment? verticalAlign,
- 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,
);
}