DrawablePaint class
A wrapper class for Flutter's Paint class.
Provides non-opaque access to painting properties.
- Annotations
Constructors
- DrawablePaint(PaintingStyle? style, {Color? color, Shader? shader, BlendMode? blendMode, ColorFilter? colorFilter, bool? isAntiAlias, FilterQuality? filterQuality, MaskFilter? maskFilter, StrokeCap? strokeCap, StrokeJoin? strokeJoin, double? strokeMiterLimit, double? strokeWidth})
-
Creates a new DrawablePaint object.
const
Properties
- blendMode → BlendMode?
-
The BlendMode to use when stroking or filling a shape.
final
- color → Color?
-
The color to use for this paint when stroking or filling a shape.
final
- colorFilter → ColorFilter?
-
A color filter to apply when a shape is drawn or layer is composited.
final
- filterQuality → FilterQuality?
-
Controls the performance vs quality trade-off to use when applying
filters, such as maskFilter, or when drawing images, as with
Canvas.drawImageRect or Canvas.drawImageNine.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAntiAlias → bool?
-
Whether to apply anti-aliasing to the lines and images drawn.
final
- maskFilter → MaskFilter?
-
A mask filter (for example, a blur) to apply to a shape after it has been
drawn but before it has been composited into the image.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shader → Shader?
-
The Shader to use when stroking or filling a shape.
final
- strokeCap → StrokeCap?
-
The StrokeCap for this shape.
final
- strokeJoin → StrokeJoin?
-
The StrokeJoin for this shape.
final
- strokeMiterLimit → double?
-
The stroke miter limit. See Paint.strokeMiterLimit.
final
- strokeWidth → double?
-
The width of strokes for this paint.
final
- style → PaintingStyle?
-
Whehter to fill or stroke when drawing this shape.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toFlutterPaint(
) → Paint - Creates a Paint object from this DrawablePaint.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
isEmpty(
DrawablePaint? paint) → bool - Returns whether this paint is null or equivalent to SVG's "none".
-
merge(
DrawablePaint? a, DrawablePaint? b) → DrawablePaint? -
Will merge two DrawablePaints, preferring properties defined in
a
if they're not null.
Constants
- empty → const DrawablePaint
- An empty DrawablePaint.