GradientOrientation enum

Defines the orientation of a gradient in 2D space.

Inheritance
Available extensions

Values

bottomLeftTopRight → const GradientOrientation

Gradient from the bottom-left to the top-right.

bottomTop → const GradientOrientation

Gradient from the bottom to the top.

bottomRightTopLeft → const GradientOrientation

Gradient from the bottom-right to the top-left.

leftRight → const GradientOrientation

Gradient from the left to the right.

rightLeft → const GradientOrientation

Gradient from the right to the left.

topLeftBottomRight → const GradientOrientation

Gradient from the top-left to the bottom-right.

topBottom → const GradientOrientation

Gradient from the top to the bottom.

topRightBottomLeft → const GradientOrientation

Gradient from the top-right to the bottom-left.

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

computeOffsets(Offset position, Size size) → (Offset, Offset)

Available on GradientOrientation, provided by the OffsetFromGradientOrientation extension

Computes the start and end Offsets for the gradient based on the position and size of the canvas.
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<GradientOrientation>
A constant List of the values in this enum, in order of their declaration.