Aligned class

An aligned point within a geospatial box or tile.

Inspired by the Alignment and AlignmentDirectional classes defined by the Flutter SDK.

This class is named Aligned to avoid name collisions with Alignment and Align classes defined by the Flutter SDK.

Annotations
  • @immutable

Constructors

Aligned({required double x, required double y})
An aligned point within a geospatial box or tile.
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 horizontal distance fraction.
final
y double
The vertical distance fraction.
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

Constants

center → const Aligned
The center point, with x: 0.0, y: 0.0.
centerEast → const Aligned
The center point along the east side edge, with x: 1.0, y: 0.0.
centerWest → const Aligned
The center point along the west side edge, with x: -1.0, y: 0.0.
northCenter → const Aligned
The center point along the north side edge, with x: 0.0, y: 1.0.
northEast → const Aligned
The north east corner, with x: 1.0, y: 1.0.
northWest → const Aligned
The north west corner, with x: -1.0, y: 1.0.
southCenter → const Aligned
The center point along the south side edge, with x: 0.0, y: -1.0.
southEast → const Aligned
The south east corner, with x: 1.0, y: -1.0.
southWest → const Aligned
The south west corner, with x: -1.0, y: -1.0.