AlignmentUtility<T extends Attribute> class

A utility class for creating Attribute instances from AlignmentGeometry values.

This class extends ScalarUtility and provides methods to create Attribute instances from predefined Alignment values or custom Alignment and AlignmentDirectional values.

Inheritance

Constructors

AlignmentUtility(T builder(AlignmentGeometry))
const

Properties

builder → T Function(AlignmentGeometry)
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

as(AlignmentGeometry value) → T
inherited
bottomCenter() → T
Creates an Attribute instance with Alignment.bottomCenter.
bottomLeft() → T
Creates an Attribute instance with Alignment.bottomLeft.
bottomRight() → T
Creates an Attribute instance with Alignment.bottomRight.
call(AlignmentGeometry value) → T
inherited
center() → T
Creates an Attribute instance with Alignment.center.
centerLeft() → T
Creates an Attribute instance with Alignment.centerLeft.
centerRight() → T
Creates an Attribute instance with Alignment.centerRight.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
only({double? x, double? y, double? start}) → T
Creates an Attribute instance with a custom Alignment or AlignmentDirectional value.
topCenter() → T
Creates an Attribute instance with Alignment.topCenter.
topLeft() → T
Creates an Attribute instance with Alignment.topLeft.
topRight() → T
Creates an Attribute instance with Alignment.topRight.
toString() String
A string representation of this object.
inherited

Operators

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