IrGradient class
A linear or radial gradient. Points are in the frame's unit square ((0, 0) top left, (1, 1) bottom right).
Constructors
Properties
- begin → (double, double)
-
Linear: from begin to end.
final
- center → (double, double)
-
Radial: radius as a fraction of the frame's shortest side.
final
-
colors
→ List<
IrColor> -
final
- end → (double, double)
-
Linear: from begin to end.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- radial → bool
-
final
- radius → double
-
final
- rotation → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → (double, double)?
-
The size it was painted at, when known: radial and sweep gradients
keep their shape on a frame whose own size isn't fixed (fill, hug).
final
-
stops
→ List<
double> -
final
- sweep → bool
-
Sweep (Figma: angular) around center, starting at rotation
(radians, clockwise from the right) and going clockwise.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Object? json) → IrGradient?