Alignment class

Enum for browser display alignment options.

Implemented types
Implementers

Constructors

Alignment(String _displayName, String? _cssPropertyValue)
const
Alignment.parse(String displayName)
Parses one of the following values into an Alignment:
factory

Properties

cssClassX String
Returns a common CSS class in the format of 'align-x-{{name}}'.
no setter
cssClassY String
Returns a common CSS class in the format of 'align-y-{{name}}'.
no setter
hashCode int
The hash code for this object.
no setterinherited
requiresContentSizeToPosition bool
Whether calcLeft and calcTop can be used without measuring the size of the content being aligned.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply(SetPropertyFn setProperty) → void
Applies this enum using setProperty.
override
calcLeft(Rectangle<num> sourceRect, [Rectangle<num>? contentRect]) num
Returns the calculated x position from sourceRect.
calcTop(Rectangle<num> sourceRect, [Rectangle<num>? contentRect]) num
Returns the calculated y position from sourceRect.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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

Constants

After → const AfterCustomAlignment
Align content after a container.
Before → const BeforeCustomAlignment
Align content before a container.
Center → const Alignment
Align content to the center of a container.
End → const Alignment
Align content to the end of a container.
Start → const Alignment
Align content to the start of a container.