LayerLastPosition enum
The LayerLastPosition
enum represents positions relative to the center of an
image or container. It is used to specify alignments or positions in relation to
the center point, providing options such as left, right, top, bottom, or center.
Usage:
LayerLastPosition position = LayerLastPosition.center;
Enum Values:
-
left
: Represents the position to the left of the center point. -
right
: Represents the position to the right of the center point. -
top
: Represents the position above the center point. -
bottom
: Represents the position below the center point. -
center
: Represents the center position relative to the center point.
Example Usage:
LayerLastPosition position = LayerLastPosition.center;
switch (position) {
case LayerLastPosition.left:
// Handle left position relative to the center.
break;
case LayerLastPosition.right:
// Handle right position relative to the center.
break;
case LayerLastPosition.top:
// Handle top position relative to the center.
break;
case LayerLastPosition.bottom:
// Handle bottom position relative to the center.
break;
case LayerLastPosition.center:
// Handle center position relative to the center.
break;
}
Please refer to the documentation of individual enum values for more details.
Values
- left → const LayerLastPosition
-
Represents the position to the left of the center point.
- right → const LayerLastPosition
-
Represents the position to the right of the center point.
- top → const LayerLastPosition
-
Represents the position above the center point.
- bottom → const LayerLastPosition
-
Represents the position below the center point.
- center → const LayerLastPosition
-
Represents the center position relative to the center point.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
LayerLastPosition> - A constant List of the values in this enum, in order of their declaration.