copyWith method

TextElement copyWith({
  1. String? text,
  2. Trapezoid? trapezoid,
})

Implementation

TextElement copyWith({
  String? text,
  Trapezoid? trapezoid,
}) {
  return TextElement(
    text: text ?? this.text,
    trapezoid: trapezoid ?? this.trapezoid,
  );
}