DrawCommandType enum
The drawing mode of a DrawCommand.
Constructors
- DrawCommandType()
-
const
Values
- path → const DrawCommandType
-
Specifies that this command draws a Path.
- vertices → const DrawCommandType
-
Specifies that this command draws an IndexedVertices object.
In this case, any Stroke properties on the Paint are ignored.
- saveLayer → const DrawCommandType
-
Specifies that this command saves a layer.
In this case, any Stroke properties on the Paint are ignored.
- restore → const DrawCommandType
-
Specifies that this command restores a layer.
In this case, both the objectId and paintId will be
null
. - clip → const DrawCommandType
-
Specifies that this command adds a clip to the stack.
In this case, the objectId will be for a path, and the paint id will be
null
. - mask → const DrawCommandType
-
Specifies that this command adds a mask to the stack.
Implementations should save a layer using a grey scale color matrix.
- text → const DrawCommandType
-
Specifies that this command draws text.
- image → const DrawCommandType
-
Specifies that this command draws an image.
- pattern → const DrawCommandType
-
Specifies that this command draws a pattern.
- textPosition → const DrawCommandType
-
Specifies an adjustment to the current text position.
Properties
Methods
-
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
Constants
-
values
→ const List<
DrawCommandType> - A constant List of the values in this enum, in order of their declaration.