PaintPattern class abstract

Builder interface for patterns used to match display lists (canvas calls).

The paints matcher returns a PaintPattern so that you can build the pattern in the expect call.

Patterns are subset matches, meaning that any calls not described by the pattern are ignored. This allows, for instance, transforms to be skipped.

Constructors

PaintPattern()

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

arc({Rect? rect, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style, StrokeCap? strokeCap}) → void
Indicates that an arc is expected next.
circle({double? x, double? y, double? radius, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style}) → void
Indicates that a circle is expected next.
clipPath({Matcher? pathMatcher}) → void
Indicates that a path clip is expected next.
clipRect({Rect? rect}) → void
Indicates that a rectangular clip is expected next.
clipRRect({RRect? rrect}) → void
Indicates that a rounded rectangle clip is expected next.
drawImageRect({Image? image, Rect? source, Rect? destination, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style}) → void
Indicates that an image subsection is expected next.
drrect({RRect? outer, RRect? inner, Color? color, double strokeWidth, bool hasMaskFilter, PaintingStyle style}) → void
Indicates that a rounded rectangle outline is expected next.
everything(PaintPatternPredicate predicate) → void
Provides a custom matcher.
image({Image? image, double? x, double? y, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style}) → void
Indicates that an image is expected next.
line({Offset? p1, Offset? p2, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style}) → void
Indicates that a line is expected next.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paragraph({Paragraph? paragraph, dynamic offset}) → void
Indicates that a paragraph is expected next.
path({Iterable<Offset>? includes, Iterable<Offset>? excludes, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style}) → void
Indicates that a path is expected next.
rect({Rect? rect, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style}) → void
Indicates that a rectangle is expected next.
restore() → void
Indicates that a restore is expected next.
rotate({double? angle}) → void
Indicates that a rotate transform is expected next.
rrect({RRect? rrect, Color? color, double? strokeWidth, bool? hasMaskFilter, PaintingStyle? style}) → void
Indicates that a rounded rectangle is expected next.
save() → void
Indicates that a save is expected next.
saveRestore() → void
Indicates that a matching pair of save/restore calls is expected next.
scale({double? x, double? y}) → void
Indicates that a scale transform is expected next.
shadow({Iterable<Offset>? includes, Iterable<Offset>? excludes, Color? color, double? elevation, bool? transparentOccluder}) → void
Indicates that a shadow is expected next.
something(PaintPatternPredicate predicate) → void
Provides a custom matcher.
toString() String
A string representation of this object.
inherited
transform({dynamic matrix4}) → void
Indicates that a transform is expected next.
translate({double? x, double? y}) → void
Indicates that a translation transform is expected next.

Operators

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