ExpressiveCardColors class

A card's colours (Compose's CardColors, plus the outlined card's stroke from CardDefaults.outlinedCardBorder).

Mixed-in types
Annotations

Constructors

ExpressiveCardColors({required Color container, required Color content, required Color disabledContainer, required Color disabledContent, Color? outline, Color? disabledOutline})
A card's colours for its container, content and outline, enabled and disabled.
const
ExpressiveCardColors.of(ExpressiveCardVariant variant, ExpressiveColorScheme colors)
The variant's colours in colors (CardDefaults.*CardColors() and CardDefaults.outlinedCardBorder).
factory

Properties

container → Color
The container colour.
final
content → Color
The content colour: text and icons inherit it.
final
disabledContainer → Color
The container colour of a disabled clickable card.
final
disabledContent → Color
The content colour of a disabled clickable card.
final
disabledOutline → Color?
The outline stroke's colour when disabled (outlined only).
final
hashCode → int
The hash code for this object.
no setteroverride
outline → Color?
The outline stroke's colour (outlined only).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
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

Operators

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