Base class for Alignment that allows for text-direction aware resolution.

A property or argument of this type accepts classes created either with new Alignment and its variants, or new AlignmentDirectional.

To convert a AlignmentGeometry object of indeterminate type into a Alignment object, call the resolve method.

Implemented by
Annotations
  • @immutable

Constructors

AlignmentGeometry()
Abstract const constructor. This constructor enables subclasses to provide const constructors so that they can be used in const expressions.
const

Properties

hashCode int
The hash code for this object. [...]
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

add(AlignmentGeometry other) AlignmentGeometry
Returns the sum of two AlignmentGeometry objects. [...]
resolve(TextDirection direction) Alignment
Convert this instance into a Alignment, which uses literal coordinates (the x coordinate being explicitly a distance from the left). [...]
toString() String
Returns a string representation of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited

Operators

operator %(double other) AlignmentGeometry
Computes the remainder in each dimension by the given factor. [...]
operator *(double other) AlignmentGeometry
Scales the AlignmentGeometry object in each dimension by the given factor. [...]
operator /(double other) AlignmentGeometry
Divides the AlignmentGeometry object in each dimension by the given factor. [...]
operator ==(other) bool
The equality operator. [...]
operator unary-() AlignmentGeometry
Returns the negation of the given AlignmentGeometry object. [...]
operator ~/(double other) AlignmentGeometry
Integer divides the AlignmentGeometry object in each dimension by the given factor. [...]

Static Methods

lerp(AlignmentGeometry a, AlignmentGeometry b, double t) AlignmentGeometry
Linearly interpolate between two AlignmentGeometry objects. [...]