AlignmentGeometry class

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 an AlignmentGeometry object of indeterminate type into an Alignment object, call the resolve method.

Implementers
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, override
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 an Alignment, which uses literal coordinates (the x coordinate being explicitly a distance from the left). [...]
toString() String
Returns a string representation of this object.
override
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 ==(dynamic other) bool
The equality operator. [...]
override
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. [...]