WatermarkComponent constructor

const WatermarkComponent({
  1. Key? key,
  2. String? text,
  3. List<String>? texts,
  4. TextStyle? textStyle,
  5. Color color = Colors.black,
  6. double opacity = 0.08,
  7. double rotation = -20 * math.pi / 180,
  8. double horizontalSpacing = 120,
  9. double verticalSpacing = 80,
  10. int maxPaintCount = 800,
  11. Offset textOffset = Offset.zero,
  12. bool enabled = true,
  13. TextDirection? textDirection,
  14. bool computeInBackground = true,
})

Implementation

const WatermarkComponent({
  super.key,
  this.text,
  this.texts,
  this.textStyle,
  this.color = Colors.black,
  this.opacity = 0.08,
  this.rotation = -20 * math.pi / 180,
  this.horizontalSpacing = 120,
  this.verticalSpacing = 80,
  this.maxPaintCount = 800,
  this.textOffset = Offset.zero,
  this.enabled = true,
  this.textDirection,
  this.computeInBackground = true,
});