ColorStop class

A color and position in a gradient band.

Constructors

ColorStop({double? alpha, OpaqueColor? color, double? position})
ColorStop.fromJson(Map json_)

Properties

alpha double?
The alpha value of this color in the gradient band.
getter/setter pair
color OpaqueColor?
The color of the gradient stop.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
position double?
The relative position of the color stop in the gradient band measured in percentage.
getter/setter pair
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
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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