CSSConicGradient class
- Inheritance
-
- Object
- Gradient
- SweepGradient
- CSSConicGradient
- Mixed-in types
Constructors
-
CSSConicGradient({AlignmentGeometry center = Alignment.center, required List<
Color> colors, List<double> ? stops, GradientTransform? transform}) - Creates a linear gradient.
Properties
- borderEdge ↔ EdgeInsets?
-
getter/setter pairinherited
- center → AlignmentGeometry
-
The center of the gradient, as an offset into the (-1.0, -1.0) x (1.0, 1.0)
square describing the gradient which will be mapped onto the paint box.
finalinherited
-
colors
→ List<
Color> -
The colors the gradient should obtain at each of the stops.
finalinherited
- endAngle → double
-
The angle in radians at which stop 1.0 of the gradient is placed.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startAngle → double
-
The angle in radians at which stop 0.0 of the gradient is placed.
finalinherited
-
stops
→ List<
double> ? -
A list of values from 0.0 to 1.0 that denote fractions along the gradient.
finalinherited
- tileMode → TileMode
-
How this gradient should tile the plane beyond in the region before
startAngle and after endAngle.
finalinherited
- transform → GradientTransform?
-
The transform, if any, to apply to the gradient.
finalinherited
Methods
-
createShader(
Rect rect, {TextDirection? textDirection}) → Shader -
Creates a Shader for this gradient to fill the given rect.
override
-
lerpFrom(
Gradient? a, double t) → Gradient? -
Linearly interpolates from another Gradient to
this
.inherited -
lerpTo(
Gradient? b, double t) → Gradient? -
Linearly interpolates from
this
to another Gradient.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
scale(
double factor) → SweepGradient -
Returns a new SweepGradient with its colors scaled by the given factor.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited