DrawableRadialGradient class
Represents the information needed to create a Gradient.radial.
- Inheritance
-
- Object
- DrawableGradient
- DrawableRadialGradient
- Annotations
Constructors
-
DrawableRadialGradient({required Offset center, required double? radius, required Offset focal, double focalRadius = 0.0, required List<
double> offsets, required List<Color> colors, required TileMode spreadMethod, required GradientUnitMode unitMode, Float64List? transform}) -
Creates a DrawableRadialGradient.
const
Properties
- center → Offset
-
The center of the radial gradient.
final
-
colors
→ List<
Color> ? -
The colors to use for the gradient.
finalinherited
- focal → Offset
-
The focal point, if any, for a two point conical gradient.
final
- focalRadius → double
-
The radius of the focal point.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
offsets
→ List<
double> ? -
Specifies where
colors[i]
begins in the gradient.finalinherited - radius → double?
-
The radius of the radial gradient.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spreadMethod → TileMode
-
The TileMode to use for this gradient.
finalinherited
- transform → Float64List?
-
The transform to apply to this gradient.
finalinherited
- unitMode → GradientUnitMode
-
The GradientUnitMode for any vectors specified by this gradient.
finalinherited
Methods
-
createShader(
Rect bounds) → Shader -
Creates a Shader (i.e. a Gradient) from this object.
override
-
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