BigColor class

Implemented types

Constructors

BigColor.fromARGB(int a, int r, int g, int b)
factory
BigColor.fromColor(Color color)
factory
BigColor.fromHexString(String hexString)
factory
BigColor.fromRGB0(int r, dynamic g, dynamic b, double opacity)
factory

Properties

a double
no setter
alpha int
The alpha channel of this color in an 8 bit value.
no setteroverride
b double
no setter
blue int
The blue channel of this color in an 8 bit value.
no setteroverride
c double
no setter
green int
The green channel of this color in an 8 bit value.
no setteroverride
h double
no setter
hashCode int
The hash code for this object.
no setteroverride
l double
no setter
opacity double
The alpha channel of this color as a double.
no setteroverride
red int
The red channel of this color in an 8 bit value.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value int
A 32 bit value representing this color.
no setteroverride

Methods

computeLuminance() double
Returns a brightness value between 0 for darkest and 1 for lightest.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withAlpha(int a) Color
Returns a new color that matches this color with the alpha channel replaced with a (which ranges from 0 to 255).
override
withBlue(int b) Color
Returns a new color that matches this color with the blue channel replaced with b (which ranges from 0 to 255).
override
withGreen(int g) Color
Returns a new color that matches this color with the green channel replaced with g (which ranges from 0 to 255).
override
withOpacity(double apacity) 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).
override
withRed(int r) Color
Returns a new color that matches this color with the red channel replaced with r (which ranges from 0 to 255).
override

Operators

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