Alignment class

Represents a relative alignment in 2D space.

Constructors

Alignment(double x, double y)
Creates an alignment with the given x and y fractions.
const

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
The distance fraction in the horizontal direction.
final
y double
The distance fraction in the vertical direction.
final

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

Constants

bottomCenter → const Alignment
The center point along the bottom edge.
bottomLeft → const Alignment
The bottom left corner.
bottomRight → const Alignment
The bottom right corner.
center → const Alignment
The center point, both horizontally and vertically.
centerLeft → const Alignment
The center point along the left edge.
centerRight → const Alignment
The center point along the right edge.
topCenter → const Alignment
The center point along the top edge.
topLeft → const Alignment
The top left corner.
topRight → const Alignment
The top right corner.