TextWaterMarkPainter constructor

TextWaterMarkPainter({
  1. Key? key,
  2. double? rotate,
  3. EdgeInsets? padding,
  4. TextStyle? textStyle,
  5. required String text,
  6. TextDirection textDirection = TextDirection.ltr,
})

Implementation

TextWaterMarkPainter(
    {Key? key,
    double? rotate,
    EdgeInsets? padding,
    TextStyle? textStyle,
    required this.text,
    this.textDirection = TextDirection.ltr})
    : assert(rotate == null || rotate >= -90 && rotate <= 90),
      rotate = rotate ?? 0,
      padding = padding ?? const EdgeInsets.all(10.0),
      textStyle = textStyle ??
          const TextStyle(
            color: Color.fromARGB(30, 0, 0, 0),
            fontSize: 14,
          );