ScreenCoordinate class Navigation Navigation View Map View

A point on the device's screen, specified in logical pixels.

Coordinates are in Flutter's logical pixel coordinate system, which automatically accounts for device pixel density. This means you can use these coordinates directly with Flutter's layout system without manual conversion.

Annotations

Constructors

ScreenCoordinate({required double x, required double y})
Initializes a ScreenCoordinate with the provided x and y values.
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
x → double
The x coordinate of the point in logical pixels.
final
y → double
The y coordinate of the point in logical pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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