Watermark.text constructor

Watermark.text(
  1. String text, {
  2. TextStyle? style,
  3. BoxFit fit = pw.BoxFit.contain,
  4. double angle = _quarterTurn,
})

Creates a Watermark from a string.

Implementation

Watermark.text(
  String text, {
  pw.TextStyle? style,
  this.fit = pw.BoxFit.contain,
  this.angle = _quarterTurn,
}) : child = BanglaAwareText(
        text,
        style: style ??
            const pw.TextStyle(
              color: PdfColors.grey200,
              fontWeight: pw.FontWeight.bold,
            ),
      );