Colors class abstract

Constructors

Colors()

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

brightnessFor(Color? color) Brightness?
Determines whether the given Color is Brightness.light or Brightness.dark.
onSurface(Color? surface, [Color? onLight = black, Color? onDark = white]) Color?
Estimate foreground color on surface
withAlpha(Color? color, int? alpha) Color?
Returns a new color that matches this color with the alpha channel replaced with a (which ranges from 0 to 255).
withOpacity(Color? color, double? opacity) Color?
Returns a new color that matches this color with the alpha channel replaced with the given opacity (which ranges from 0.0 to 1.0).
withTransparency(Color? color, {double? opacity, int? alpha}) Color?
Returns a new color that matches this color with the alpha channel replaced with the given opacity (which ranges from 0.0 to 1.0), and/or with the alpha channel replaced with a (which ranges from 0 to 255).

Constants

black → const Color
Completely opaque black.
transparent → const Color
Completely invisible.
white → const Color
Completely opaque white.