Paint class
An immutable collection of painting attributes.
Null attribute values indicate that a value is expected to inherit from parent or accept a child's painting value.
Leaf nodes in a painting graph must have a non-null fill or a non-null stroke. If both stroke and fill are not null, the expected painting order is fill followed by stroke.
- Annotations
-
- @immutable
Constructors
Properties
- blendMode → BlendMode
-
The Porter-Duff algorithm to use when compositing this painting object
with any objects painted under it.
final
- fill → Fill?
-
The fill properties, if any, to apply to shapes drawn with this paint.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stroke → Stroke?
-
The stroke properties, if any, to apply to shapes drawn with this paint.
final
Methods
-
applyBounds(
Rect bounds, AffineMatrix transform) → Paint - Apply the bounds to the given paint.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override