GradientStop class final
One color sample along a gradient line.
offset is expressed in the normalized gradient interval [0, 1]. Scene
validation owns range and ordering checks so callers can collect all
diagnostics for a document at once.
Constructors
- GradientStop({required double offset, required Color32 color})
-
const
-
GradientStop.fromJson(Map<
String, dynamic> json) -
factory
Properties
Methods
-
copyWith(
{double? offset, Color32? color}) → GradientStop -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override