copyWith method

KoiPositionedTextElement copyWith({
  1. int? x,
  2. int? y,
  3. String? text,
  4. int? fontSize,
  5. String? font,
  6. int? rotation,
  7. int? xScale,
  8. int? yScale,
  9. bool? bold,
})

Implementation

KoiPositionedTextElement copyWith({
  int? x,
  int? y,
  String? text,
  int? fontSize,
  String? font,
  int? rotation,
  int? xScale,
  int? yScale,
  bool? bold,
}) {
  return KoiPositionedTextElement(
    x: x ?? this.x,
    y: y ?? this.y,
    text: text ?? this.text,
    fontSize: fontSize ?? this.fontSize,
    font: font ?? this.font,
    rotation: rotation ?? this.rotation,
    xScale: xScale ?? this.xScale,
    yScale: yScale ?? this.yScale,
    bold: bold ?? this.bold,
  );
}