copyWith method
ImageDrawable
copyWith({
- Set<
ObjectDrawableAssist> ? assists, - Offset? position,
- double? rotation,
- double? scale,
- Image? image,
- bool? flipped,
- bool? locked,
override
Creates a copy of this but with the given fields replaced with the new values.
Implementation
@override
ImageDrawable copyWith(
{bool? hidden,
Set<ObjectDrawableAssist>? assists,
Offset? position,
double? rotation,
double? scale,
Image? image,
bool? flipped,
bool? locked}) {
return ImageDrawable(
hidden: hidden ?? this.hidden,
assists: assists ?? this.assists,
position: position ?? this.position,
rotationAngle: rotation ?? rotationAngle,
scale: scale ?? this.scale,
image: image ?? this.image,
flipped: flipped ?? this.flipped,
locked: locked ?? this.locked,
);
}