ColorMath class

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

contrastingForeground(Argb background, {double min = 4.5}) Argb
Black or white, whichever contrasts better against background.
contrastRatio(Argb a, Argb b) double
darken(Argb c, double amount) Argb
desaturate(Argb c, double amount) Argb
ensureContrast(Argb fg, Argb bg, {double min = 4.5}) Argb
Nudge fg toward black/white until contrast against bg is at least min, or return a hard black/white fallback.
lighten(Argb c, double amount) Argb
mix(Argb a, Argb b, double t) Argb
neutralScale({required Argb lightest, required Argb darkest}) List<Argb>
rotateHue(Argb c, double degrees) Argb
saturate(Argb c, double amount) Argb
withLightness(Argb c, double l) Argb
withSaturation(Argb c, double s) Argb