DashGeometricEffect class final
A Geometric effect object that transforms the representation of a line using a pattern of dashes and gaps.
Transforms the representation of a line using a pattern of dashes and gaps. Dashes are the symbolized portion of the stroke and gaps are the unsymbolized portion. A collection of dash and gap distances (DIP values greater than 0) provides a template to be repeated throughout the line. A basic template consists of two distance values: the first defines the length of each dash and the second defines the length of each gap. More complex effects can be created by defining a template of multiple dashes and gaps. Template values are read as dash distance followed by gap distance throughout the pattern. Templates that contain an odd number of values will maintain the dash-gap pattern by restarting at the beginning of the template. A template of '3 2 1', for example, will be rendered as '3(dash) 2(gap) 1(dash) 3(gap) 2(dash) 1(gap) ...'. The default template is an empty collection, which renders a solid line.
- Inheritance
-
- Object
- GeometricEffect
- DashGeometricEffect
Constructors
-
DashGeometricEffect({List<
double> dashTemplate = const []}) -
Creates a dash geometric effect using the provided template to define
dashes and gaps.
factory
Properties
-
dashTemplate
→ List<
double> -
The template that defines dashes and gaps for the geometric effect.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clone(
) → GeometricEffect -
Clones the GeometricEffect.
inherited
-
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