NodeCoordinate class
Represents a two-dimensional coordinate in the SVG.
The NodeCoordinate class defines the horizontal (x) and vertical (y) position of a node. It is typically used to describe where an element is located within an SVG coordinate system or any other 2D layout.
Example:
final coordinate = NodeCoordinate(x: 12.5, y: 42.0);
print(coordinate.x); // 12.5
print(coordinate.y); // 42.0
Constructors
- NodeCoordinate({required double x, required double y})
-
Creates a new immutable NodeCoordinate with the given
xandyvalues.const
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