DirectionalBoxAlignment class

Inheritance

Constructors

DirectionalBoxAlignment.new(double value)
Creates a directional alignment with the specified value.
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
value double
The alignment value, where -1.0 is start, 0.0 is center, and 1.0 is end.
final

Methods

adjustSize({required ParentLayout parent, required LayoutAxis axis, required double viewportSize, required double contentSize}) double?
Optionally adjusts the size of the child during alignment.
inherited
adjustSpacing({required ParentLayout parent, required LayoutAxis axis, required double viewportSize, required double contentSize, required double startSpacing, required double spacing, required double endSpacing, required int affectedCount}) → ({double additionalEndSpacing, double additionalSpacing, double additionalStartSpacing})?
Adjusts spacing between items when distributing space.
inherited
align({required ParentLayout parent, required LayoutAxis axis, required double viewportSize, required double contentSize, required double maxBaseline, required double childBaseline}) double
Calculates the alignment position based on the value and text direction.
override
needsBaseline({required ParentLayout parent, required LayoutAxis axis}) bool
This alignment never requires baseline information since it doesn't support baseline alignment.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Constants

baseline → const BoxAlignmentGeometry
Aligns items based on their text baseline.
center → const BoxAlignmentBase
Centers content within the container.
end → const BoxAlignmentBase
Aligns to the end of the container, respecting text direction. In LTR text, this is right/bottom; in RTL text, this is left/bottom.
start → const BoxAlignmentBase
Aligns to the start of the container, respecting text direction. In LTR text, this is left/top; in RTL text, this is right/top.