DrawableDefinitionServer class

Contains reusable drawing elements that can be referenced by a String ID.

Constructors

DrawableDefinitionServer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addClipPath(String id, List<Path> paths) → void
Add a List<Path> of clip paths by id.
addDrawable(String id, DrawableStyleable drawable) → void
Add a Drawable that can later be referred to by id.
addGradient(String id, DrawableGradient gradient) → void
Add a DrawableGradient to the pre-defined collection by id.
getClipPath(String id) List<Path>?
Get a List<Path> of clip paths by id.
getDrawable(String id, {bool nullOk = false}) DrawableStyleable?
Attempt to lookup a Drawable by id.
getGradient<T extends DrawableGradient?>(String id) → T?
Retreive a gradient from the pre-defined DrawableGradient collection.
getShader(String id, Rect bounds) Shader?
Attempt to lookup a pre-defined Shader by id.
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

emptyUrlIri → const String
An empty IRI for SVGs.