TextWaterMarkPainter constructor
TextWaterMarkPainter({
- Key? key,
- double? rotate,
- EdgeInsets? padding,
- TextStyle? textStyle,
- required String text,
- 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,
);