GradientUtility<T extends Attribute> class
A utility class for working with gradients.
This class provides convenient methods for creating different types of gradients,
such as radial gradients, linear gradients, and sweep gradients.
It also provides a method for converting a generic Gradient object to a specific type T.
Accepts a builder function that takes a GradientDto and returns an object of type T.
- Inheritance
-
- Object
- MixUtility<
T, GradientDto< Gradient> > - GradientUtility
Constructors
-
GradientUtility(T builder(GradientDto<
Gradient> ))
Properties
-
builder
→ T Function(GradientDto<
Gradient> ) -
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
linear
→ LinearGradientUtility<
T> -
latefinal
-
radial
→ RadialGradientUtility<
T> -
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sweep
→ SweepGradientUtility<
T> -
latefinal
Methods
-
as(
Gradient gradient) → T -
Converts a Gradient object to the specific type
T. -
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