copyWith method
TextDrawable
copyWith({
- Set<
ObjectDrawableAssist> ? assists, - String? text,
- Offset? position,
- double? rotation,
- double? scale,
- TextStyle? style,
- bool? locked,
- TextDirection? direction,
override
Creates a copy of this but with the given fields replaced with the new values.
Implementation
@override
TextDrawable copyWith({
bool? hidden,
Set<ObjectDrawableAssist>? assists,
String? text,
Offset? position,
double? rotation,
double? scale,
TextStyle? style,
bool? locked,
TextDirection? direction,
}) {
return TextDrawable(
text: text ?? this.text,
position: position ?? this.position,
rotation: rotation ?? rotationAngle,
scale: scale ?? this.scale,
style: style ?? this.style,
direction: direction ?? this.direction,
assists: assists ?? this.assists,
hidden: hidden ?? this.hidden,
locked: locked ?? this.locked,
);
}