GradOf class Null safety

The gradient of the shades of a Material Design color.

It produces a list of colors of fixed or growable length, ordered by the darkness of the colors: the higher the index, the darker the color.

Inheritance

Constructors

GradOf.amber({bool growable = false})
A gradient of ten shades of amber.
const
GradOf.amberAccent({bool growable = false})
A gradient of four shades of amber accent.
const
GradOf.blue({bool growable = false})
A gradient of ten shades of blue.
const
GradOf.blueAccent({bool growable = false})
A gradient of four shades of blue accent.
const
GradOf.blueGrey({bool growable = false})
A gradient of ten shades of blue-grey.
const
GradOf.brown({bool growable = false})
A gradient of ten shades of brown.
const
GradOf.cyan({bool growable = false})
A gradient of ten shades of cyan.
const
GradOf.cyanAccent({bool growable = false})
A gradient of four shades of cyan accent.
const
GradOf.deepOrange({bool growable = false})
A gradient of ten shades of deep orange.
const
GradOf.deepOrangeAccent({bool growable = false})
A gradient of four shades of deep orange accent.
const
GradOf.deepPurpleAccent({bool growable = false})
A gradient of four shades of deep purple accent.
const
GradOf.deepPurples({bool growable = false})
A gradient of ten shades of deep purple.
const
GradOf.green({bool growable = false})
A gradient of ten shades of green.
const
GradOf.greenAccent({bool growable = false})
A gradient of four shades of green accent.
const
GradOf.grey({bool growable = false})
A gradient of ten shades of grey.
const
GradOf.indigo({bool growable = false})
A gradient of ten shades of indigo.
const
GradOf.indigoAccent({bool growable = false})
A gradient of four shades of indigo accent.
const
GradOf.lightBlue({bool growable = false})
A gradient of ten shades of light-blue.
const
GradOf.lightBlueAccent({bool growable = false})
A gradient of four shades of light-blue accent.
const
GradOf.lightGreen({bool growable = false})
A gradient of ten shades of lightGreen.
const
GradOf.lightGreenAccent({bool growable = false})
A gradient of four shades of lightGreen accent.
const
GradOf.lime({bool growable = false})
A gradient of ten shades of lime.
const
GradOf.limeAccent({bool growable = false})
A gradient of four shades of lime accent.
const
GradOf.orange({bool growable = false})
A gradient of ten shades of orange.
const
GradOf.orangeAccent({bool growable = false})
A gradient of four shades of orange accent.
const
GradOf.pink({bool growable = false})
A gradient of ten shades of pink.
const
GradOf.pinkAccent({bool growable = false})
A gradient of four shades of pink accent.
const
GradOf.purple({bool growable = false})
A gradient of ten shades of purple.
const
GradOf.purpleAccent({bool growable = false})
A gradient of four shades of purple accent.
const
GradOf.red({bool growable = false})
A gradient of ten shades of red.
const
GradOf.redAccent({bool growable = false})
A gradient of four shades of red accent.
const
GradOf.teal({bool growable = false})
A gradient of ten shades of teal.
const
GradOf.tealAccent({bool growable = false})
A gradient of four shades of teal accent.
const
GradOf.yellow({bool growable = false})
A gradient of ten shades of yellow.
const
GradOf.yellowAccent({bool growable = false})
A gradient of four shades of yellow accent.
const

Properties

colors List<Color>
A list of position-dependent colors — a color gradient.
read-only, inherited
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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