ClipContext class

Clip utilities used by PaintingContext and TestRecordingPaintingContext.

Implementers

Constructors

ClipContext()

Properties

canvas Canvas
The canvas on which to paint.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clipPathAndPaint(Path path, Clip clipBehavior, Rect bounds, void painter()) → void
Clip canvas with Path according to Clip and then paint. canvas is restored to the pre-clip status afterwards. [...]
clipRectAndPaint(Rect rect, Clip clipBehavior, Rect bounds, void painter()) → void
Clip canvas with Path according to Rect and then paint. canvas is restored to the pre-clip status afterwards. [...]
clipRRectAndPaint(RRect rrect, Clip clipBehavior, Rect bounds, void painter()) → void
Clip canvas with Path according to RRect and then paint. canvas is restored to the pre-clip status afterwards. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited