MarkElement<S extends ElementStyle> class abstract

The basic element to compose graphics on MarkScenes.

Implementers

Constructors

MarkElement({required S style, double? rotation, Offset? rotationAxis, String? tag})
Creates an element.

Properties

hashCode int
The hash code for this object.
read-onlyinherited
rotation double?
The rotation of this element.
final
rotationAxis Offset?
The rotation axis of this element.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
style → S
The style of this element.
final
tag String?
The tag to indicate correspondence of this element in animation.
final

Methods

draw(Canvas canvas) → void
Indicates how this element is drawn.
lerpFrom(covariant MarkElement<S> from, double t) MarkElement<S>
Linearly interpolate between this element and from.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas) → void
Paints this element on canvas.
toString() String
A string representation of this object.
inherited

Operators

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