BlockAlignment class
Class representing the alignment of a block.
- Available extensions
Constructors
- BlockAlignment(double x, double y, {XEdgeAlignment xEdgeAlignment = XEdgeAlignment.left, YEdgeAlignment yEdgeAlignment = YEdgeAlignment.bottom})
-
const
Properties
- alignBottom → BlockAlignment
-
Available on BlockAlignment, provided by the BlockEdgeAlignmentX extension
Aligns the block to the bottom edge.no setter - alignHCenter → BlockAlignment
-
Available on BlockAlignment, provided by the BlockEdgeAlignmentX extension
Aligns the block to the horizontal center.no setter - alignLeft → BlockAlignment
-
Available on BlockAlignment, provided by the BlockEdgeAlignmentX extension
Aligns the block to the left edge.no setter - alignRight → BlockAlignment
-
Available on BlockAlignment, provided by the BlockEdgeAlignmentX extension
Aligns the block to the right edge.no setter - alignTop → BlockAlignment
-
Available on BlockAlignment, provided by the BlockEdgeAlignmentX extension
Aligns the block to the top edge.no setter - alignVCenter → BlockAlignment
-
Available on BlockAlignment, provided by the BlockEdgeAlignmentX extension
Aligns the block to the vertical center.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- x → double
-
The x-coordinate of the alignment.
final
- xEdgeAlignment → XEdgeAlignment
-
The horizontal edge alignment.
final
- y → double
-
The y-coordinate of the alignment.
final
- yEdgeAlignment → YEdgeAlignment
-
The vertical edge alignment.
final
Methods
-
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 %(
double other) → BlockAlignment - Computes the remainder in each dimension by the given factor.
-
operator *(
double other) → BlockAlignment - Scales the BlockAlignment in each dimension by the given factor.
-
operator +(
BlockAlignment other) → BlockAlignment - Returns the sum of two BlockAlignments.
-
operator -(
BlockAlignment other) → BlockAlignment - Returns the difference between two BlockAlignments.
-
operator /(
double other) → BlockAlignment - Divides the BlockAlignment in each dimension by the given factor.
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator unary-(
) → BlockAlignment - Returns the negation of the given BlockAlignment.
-
operator ~/(
double other) → BlockAlignment - Integer divides the BlockAlignment in each dimension by the given factor.
Static Methods
-
lerp(
BlockAlignment? a, BlockAlignment? b, double t) → BlockAlignment?
Constants
- bottomCenter → const BlockAlignment
- Predefined alignment for the bottom-center.
- bottomLeft → const BlockAlignment
- Predefined alignment for the bottom-left corner.
- bottomRight → const BlockAlignment
- Predefined alignment for the bottom-right corner.
- center → const BlockAlignment
- Predefined alignment for the center.
- centerLeft → const BlockAlignment
- Predefined alignment for the center-left.
- centerRight → const BlockAlignment
- Predefined alignment for the center-right.
- topCenter → const BlockAlignment
- Predefined alignment for the top-center.
- topLeft → const BlockAlignment
- Predefined alignment for the top-left corner.
- topRight → const BlockAlignment
- Predefined alignment for the top-right corner.