Accent class

A status to highlight content related to discovery or special offers.

The icon for this status is customizable.

Inheritance

Constructors

Accent({String? icon, String? semanticsLabel, bool tinted = true, Color? backgroundColor})
const

Properties

backgroundColor → Color?
The background color to apply behind the icon.
final
getBackgroundColor → Color?
Returns the background color to apply behind the icon.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
icon → String?
The path to the custom SVG asset for the icon.
final
isTinted → bool
Returns whether the icon is tinted.
no setterinherited
nonFunctionalIcon → String?
Returns the custom icon asset path for non-functional statuses.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
semanticsLabel → String?
The label for accessibility when using a custom icon.
final
tinted → bool
Controls whether the icon should be tinted with the theme color. Defaults to true. When set to false, the icon is displayed with its original colors (e.g., for multi-color icons). Note that untinted icons must ensure sufficient contrast with the background for accessibility reasons.
final

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