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

Methods

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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited