ScreenCoordinate class Null safety

Describes the coordinate on the screen, measured from top to bottom and from left to right. Note: the map uses screen coordinate units measured in logical pixels.

Constructors

ScreenCoordinate({required double x, required double y})

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
x double
A value representing the x position of this coordinate.
read / write
y double
A value representing the y position of this coordinate.
read / write

Methods

encode() Object
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

decode(Object result) ScreenCoordinate