BadgeTheme class

Theme data for customizing badge widget appearance across different styles.

This class defines the visual properties that can be applied to various badge types including PrimaryBadge, SecondaryBadge, OutlineBadge, and DestructiveBadge. Each badge style can have its own button styling configuration to provide consistent appearance across the application.

Constructors

BadgeTheme({AbstractButtonStyle? primaryStyle, AbstractButtonStyle? secondaryStyle, AbstractButtonStyle? outlineStyle, AbstractButtonStyle? destructiveStyle})
Creates a BadgeTheme.
const

Properties

destructiveStyle AbstractButtonStyle?
Style for DestructiveBadge.
final
hashCode int
The hash code for this object.
no setteroverride
outlineStyle AbstractButtonStyle?
Style for OutlineBadge.
final
primaryStyle AbstractButtonStyle?
Style for PrimaryBadge.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondaryStyle AbstractButtonStyle?
Style for SecondaryBadge.
final

Methods

copyWith({ValueGetter<AbstractButtonStyle?>? primaryStyle, ValueGetter<AbstractButtonStyle?>? secondaryStyle, ValueGetter<AbstractButtonStyle?>? outlineStyle, ValueGetter<AbstractButtonStyle?>? destructiveStyle}) BadgeTheme
Returns a copy of this theme with the given fields replaced.
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.
override