GradientAngleGeometry class abstract
An abstract base class for representing gradient angles with alignment geometry.
GradientAngleGeometry provides an interface for converting between angular representation and alignment-based gradients. It supports both directional (text-direction-aware) and non-directional gradient angles.
Subclasses should implement how to calculate begin and end alignments based on the angle value.
- Implementers
Constructors
- GradientAngleGeometry()
-
Creates a const GradientAngleGeometry.
const
Properties
- angle → double
-
The angle of the gradient in radians.
no setter
- begin → AlignmentGeometry
-
The beginning alignment of the gradient.
no setter
- end → AlignmentGeometry
-
The ending alignment of the gradient.
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
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDirectional(
) → DirectionalGradientAngle - Converts this to a directional gradient angle.
-
toNonDirectional(
) → GradientAngle - Converts this to a non-directional gradient angle.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited