WaterMarkPainter class abstract

定义水印画笔

Implementers

Constructors

WaterMarkPainter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paintUnit(Canvas canvas, double devicePixelRatio) Size
绘制"单元水印",完整的水印是由单元水印重复平铺组成,返回值为"单元水印"占用空间的大小。 devicePixelRatio: 因为最终要将绘制内容保存为图片,所以在绘制时需要根据屏幕的 DPR来放大,以防止失真
shouldRepaint(covariant WaterMarkPainter oldPainter) bool
是否需要重绘
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited