copyWith method

  1. @override
DoubleArrowDrawable copyWith({
  1. bool? hidden,
  2. Set<ObjectDrawableAssist>? assists,
  3. Offset? position,
  4. double? rotation,
  5. double? scale,
  6. double? length,
  7. Paint? paint,
  8. bool? locked,
  9. double? arrowHeadSize,
})

Creates a copy of this but with the given fields replaced with the new values.

Implementation

@override
DoubleArrowDrawable copyWith({
  bool? hidden,
  Set<ObjectDrawableAssist>? assists,
  Offset? position,
  double? rotation,
  double? scale,
  double? length,
  Paint? paint,
  bool? locked,
  double? arrowHeadSize,
}) {
  return DoubleArrowDrawable(
    hidden: hidden ?? this.hidden,
    assists: assists ?? this.assists,
    position: position ?? this.position,
    rotationAngle: rotation ?? rotationAngle,
    scale: scale ?? this.scale,
    length: length ?? this.length,
    paint: paint ?? this.paint,
    locked: locked ?? this.locked,
    arrowHeadSize: arrowHeadSize ?? this.arrowHeadSize,
  );
}