Gradient class final

Linear gradient applied to supported widgets via gradient:.

Construct with Gradient.linear and a list of GradientStops, optionally providing an angle in degrees. The DSL intentionally exposes only the linear variant today — radial/sweep can be added when product needs them.

Annotations
  • @immutable

Constructors

Gradient.linear(List<GradientStop> stops, {double angle = 0})

Properties

angle double
Gradient angle in degrees, where 0 sweeps left → right.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stops List<GradientStop>
final

Methods

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