Watermark.text constructor

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

Implementation

Watermark.text(
  String text, {
  TextStyle? style,
  this.fit = BoxFit.contain,
  this.angle = math.pi / 4,
}) : child = Text(
       text,
       style:
           style ??
           TextStyle(color: PdfColors.grey200, fontWeight: FontWeight.bold),
     );