copyWith method

KoiLabelBlockTextElement copyWith({
  1. int? x,
  2. int? y,
  3. int? width,
  4. int? height,
  5. String? text,
  6. String? font,
  7. int? rotation,
  8. int? xScale,
  9. int? yScale,
  10. int? space,
  11. int? align,
  12. int? fit,
})

Implementation

KoiLabelBlockTextElement copyWith({
  int? x,
  int? y,
  int? width,
  int? height,
  String? text,
  String? font,
  int? rotation,
  int? xScale,
  int? yScale,
  int? space,
  int? align,
  int? fit,
}) {
  return KoiLabelBlockTextElement(
    x: x ?? this.x,
    y: y ?? this.y,
    width: width ?? this.width,
    height: height ?? this.height,
    text: text ?? this.text,
    font: font ?? this.font,
    rotation: rotation ?? this.rotation,
    xScale: xScale ?? this.xScale,
    yScale: yScale ?? this.yScale,
    space: space ?? this.space,
    align: align ?? this.align,
    fit: fit ?? this.fit,
  );
}