DrawCommand class

A drawing command combining the index of a Path or an IndexedVertices with a Paint.

The type of object is specified by type.

The debug string property is some identifier, possibly from the source SVG, identifying an original source for this information.

Annotations
  • @immutable

Constructors

DrawCommand(DrawCommandType type, {int? objectId, int? paintId, String? debugString, int? patternId, int? patternDataId})
Creates a new canvas drawing operation.
const

Properties

debugString String?
A string, possibly from the original source SVG file, identifying a source for this command.
final
hashCode int
The hash code for this object.
no setteroverride
objectId int?
The path or vertices object index in VectorInstructions.paths or VectorInstructions.vertices.
final
paintId int?
The index of a Paint for this object in VectorInstructions.paints.
final
patternDataId int?
The index of a pattern configuration for this object in VectorInstructions.patternData.
final
patternId int?
The index of a pattern for this object in VectorInstructions.patterns.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type DrawCommandType
Whether objectId points to a Path or a IndexedVertices object in VectorInstructions.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override