DirectionalGradientAngle class
A directional gradient angle that is aware of text direction.
DirectionalGradientAngle uses AlignmentDirectional for its alignments, making it responsive to the text direction (LTR or RTL). The angle is specified in radians and determines the direction of the gradient.
Example:
const angle = DirectionalGradientAngle(0.0); // 0 radians (horizontal)
final begin = angle.begin; // Start alignment
final end = angle.end; // End alignment
- Inheritance
-
- Object
- GradientAngleGeometry
- DirectionalGradientAngle
Constructors
- DirectionalGradientAngle(double angle)
-
Creates a DirectionalGradientAngle with the specified
anglein radians.const
Properties
- angle → double
-
The angle of the gradient in radians.
final
- begin → AlignmentGeometry
-
The beginning alignment calculated from the angle.
no setteroverride
- end → AlignmentGeometry
-
The ending alignment calculated from the angle.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
toDirectional(
) → DirectionalGradientAngle -
Converts this to a directional gradient angle.
inherited
-
toNonDirectional(
) → GradientAngle -
Converts this to a non-directional gradient angle.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited