Point class

A point at the specified metrics coordinates.

Example:

// Create points with x, y coordinates
Point point1 = Point(10.0, 20.0);
Point point2 = Point(30.0, 40.0);
Point point3 = Point(50.0, 60.0);
print("Created points: P1(${point1.x}, ${point1.y}), P2(${point2.x}, ${point2.y}), P3(${point3.x}, ${point3.y})");

Constructors

Point(double x, double y)
Default constructor.

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
point's x coordinate in meters.
getter/setter pair
y double
point's y coordinate in meters.
getter/setter pair

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