ColorStop class

Represents a color stop in a gradient with a specific color and position.

A color stop defines where a particular color appears along a gradient. The position is typically a value between 0.0 (start) and 1.0 (end).

Example:

const stop = ColorStop(
  color: ColorDerivative.fromColor(Colors.blue),
  position: 0.5, // Middle of the gradient
);

Constructors

ColorStop({required ColorDerivative color, required double position})
Creates a ColorStop with the specified color and position.
const

Properties

color ColorDerivative
The color at this stop.
final
hashCode int
The hash code for this object.
no setterinherited
position double
The position of this stop along the gradient, typically from 0.0 to 1.0.
final
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited