AlignmentGeometry class abstract

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

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

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

Implementers
Annotations

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.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(AlignmentGeometry other) AlignmentGeometry
Returns the sum of two AlignmentGeometry objects.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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
A string representation of this object.
override

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 ==(Object 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.