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 x and y values.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
x double
The horizontal position of the node.
final
y double
The vertical position of the node.
final

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