copyWith method
RectangleDrawable
copyWith({
- Set<
ObjectDrawableAssist> ? assists, - Offset? position,
- double? rotation,
- double? scale,
- Size? size,
- Paint? paint,
- bool? locked,
- BorderRadius? borderRadius,
Creates a copy of this but with the given fields replaced with the new values.
Implementation
@override
RectangleDrawable copyWith({
bool? hidden,
Set<ObjectDrawableAssist>? assists,
Offset? position,
double? rotation,
double? scale,
Size? size,
Paint? paint,
bool? locked,
BorderRadius? borderRadius,
}) {
return RectangleDrawable(
hidden: hidden ?? this.hidden,
assists: assists ?? this.assists,
position: position ?? this.position,
rotationAngle: rotation ?? rotationAngle,
scale: scale ?? this.scale,
size: size ?? this.size,
paint: paint ?? this.paint,
locked: locked ?? this.locked,
borderRadius: borderRadius ?? this.borderRadius,
);
}