ScreenCoordinate class
Represents a point coordinate in the GoogleMap's view.
The screen location is specified in screen pixels (not display pixels) relative to the top left of the map, not top left of the whole screen. (x, y) = (0, 0) corresponds to top-left of the GoogleMap not the whole screen.
- Annotations
Constructors
- ScreenCoordinate({required int x, required int y})
-
Creates an immutable representation of a point coordinate in the GoogleMap's view.
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 → int
-
Represents the number of pixels from the left of the GoogleMap.
final
- y → int
-
Represents the number of pixels from the top of the GoogleMap.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Object - Converts this object to something serializable in JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override