SvgCommand class sealed

Normalised SVG Commands That is limited to what dart:ui supports, and all coordinates are absolute.

Implemented types
Implementers
Annotations
  • @immutable

Constructors

SvgCommand()
const

Properties

end → (double, double)
Returns the coordinates of the end of this command. e.g LineTo(10, 20).end = (10, 20)
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

mirror(Axis axis, [double centerX = 0.0, double centerY = 0.0]) SvgCommand
Mirrors this over vertical or horizontal line that goes though centerX,centerY.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rotate(double angle, [double centerX = 0.0, double centerY = 0.0]) SvgCommand
Returns a new T rotated angle radians around centerX,centerY.
inherited
scale(num scaleX, [num? scaleY]) SvgCommand
Scales by scaleX and scaleY. scaleY defaults to scaleX if not provided.
inherited
toString() String
A string representation of this object.
inherited
translate(num x, num y) SvgCommand
Returns a new T translated by x and y.
inherited

Operators

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