ResolvedMacosDynamicColor class

Inheritance
Available Extensions

Constructors

ResolvedMacosDynamicColor(Color resolvedColor, Color color, Color darkColor, Color highContrastColor, Color darkHighContrastColor, Color elevatedColor, Color darkElevatedColor, Color highContrastElevatedColor, Color darkHighContrastElevatedColor, Element? debugResolveContext)
const

Properties

alpha int
The alpha channel of this color in an 8 bit value.
no setterinherited
blue int
The blue channel of this color in an 8 bit value.
no setterinherited
color Color
The color to use when the BuildContext implies a combination of light mode, normal contrast, and base interface elevation.
finalinherited
darkColor Color
The color to use when the BuildContext implies a combination of dark mode, normal contrast, and base interface elevation.
finalinherited
darkElevatedColor Color
The color to use when the BuildContext implies a combination of dark mode, normal contrast, and elevated interface elevation.
finalinherited
darkHighContrastColor Color
The color to use when the BuildContext implies a combination of dark mode, high contrast, and base interface elevation.
finalinherited
darkHighContrastElevatedColor Color
The color to use when the BuildContext implies a combination of dark mode, high contrast, and elevated interface elevation.
finalinherited
elevatedColor Color
The color to use when the BuildContext implies a combination of light mode, normal contrast, and elevated interface elevation.
finalinherited
green int
The green channel of this color in an 8 bit value.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
highContrastColor Color
The color to use when the BuildContext implies a combination of light mode, high contrast, and base interface elevation.
finalinherited
highContrastElevatedColor Color
The color to use when the BuildContext implies a combination of light mode, high contrast, and elevated interface elevation.
finalinherited
opacity double
The alpha channel of this color as a double.
no setterinherited
red int
The red channel of this color in an 8 bit value.
no setterinherited
resolvedColor Color
final
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.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveFrom(BuildContext context) CupertinoDynamicColor
Resolves this CupertinoDynamicColor using the provided BuildContext.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
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).
inherited
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).
inherited
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).
inherited
withOpacity(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).
inherited
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).
inherited

Operators

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