ShapeSettings class
Represents settings used to control shape drawables in the UI
Constructors
-
ShapeSettings({ShapeFactory<
ShapeDrawable> ? factory, bool drawOnce = true, Paint? paint}) -
Creates a new instance of ShapeSettings with the given
factory.const
Properties
- drawOnce → bool
-
If the shape should be drawn once or continuously.
If
true, after the shape is drawn, the factory will be set back tonull. Iffalse, the user will be able to keep drawing shapes until factory is set tonullexplicitly.final -
factory
→ ShapeFactory<
ShapeDrawable> ? -
A factory for the shape in the UI.
If this is not null, whenever the user drags on the UI, a shape from the factory is drawn.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- paint → Paint?
-
The paint to be used when new shapes are drawn.
If
null, the ShapeDrawable.defaultPaint will be used.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{ShapeFactory< ShapeDrawable> ? factory = _NoShapePassedFactory.instance, bool? drawOnce, Paint? paint}) → ShapeSettings - Creates a copy of this but with the given fields replaced with the new values.
-
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