MAnyFill mixin
Default implementation for AnyFill.
Use this mixin on classes that expose AnyFill fields directly. It keeps equality-style fill comparison and base paint creation consistent across AnySide, AnyBackground, and AnyShadow.
- Implemented types
- Mixin applications
Properties
- blendMode → BlendMode?
-
Blend mode applied to the paint created for color or gradient.
no setterinherited
- color → Color?
-
Solid color used as the base fill.
no setterinherited
- gradient → Gradient?
-
Gradient used as the base fill.
no setterinherited
- hasBaseFill → bool
-
Whether this fill has a color or gradient base fill.
no setteroverride
- hasFill → bool
-
Whether this fill has any paintable content.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → DecorationImage?
-
Image painted into the target path before the base fill.
no setterinherited
- isAntiAlias → bool
-
Whether path painting should use anti-aliasing.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createBasePaint(
Path path, ImageConfiguration configuration) → Paint? -
Creates a configured paint for the base fill, or null if there is none.
override
-
isSameAs(
AnyFill? other) → bool -
Returns true when this fill has the same visual fill options as
other.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited