GradientConverter class
Converts Gradient to its corresponding Mix type.
Supports LinearGradient, RadialGradient, and SweepGradient. Other gradient types will throw UnimplementedError.
- Implemented types
Constructors
- GradientConverter()
-
const
Properties
- 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
-
toMix(
Gradient value, ConversionContext context) → Mix< Gradient> -
Converts a value to its Mix representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited