StatusBadgeProps class

Unified badge component properties.

Supports both status indicators (with dots/pulse) and card overlay badges (with positioning and style variants).

Constructors

StatusBadgeProps({required String label, ComponentSize size = ComponentSize.md, BadgeVariant variant = BadgeVariant.status, StatusType status = StatusType.info, bool showGlow = false, bool showPulse = false, bool showDot = true, String? accentColor, Widget? icon, bool showDefaultIcon = false, BadgePosition? position, String? gradient, String? background, String? borderColor, String? labelColor})
const

Properties

accentColor String?
Custom accent color for the badge. When provided, this color is used for the indicator, label, and auto-generates background/border colors using color-mix.
final
background String?
Override background color.
final
borderColor String?
Override border color.
final
effectiveShowDot bool
Whether this badge should show a dot indicator.
no setter
gradient String?
Custom gradient background (overrides accentColor when set). Example: 'linear-gradient(135deg, var(--primary), var(--accent))'
final
hashCode int
The hash code for this object.
no setterinherited
icon Widget?
Custom icon component to display. For status badges: replaces the dot indicator. For card badges: shown before the label.
final
isCardBadge bool
Whether this is a card overlay badge (positioned absolutely).
no setter
label String
The label text to display.
final
labelColor String?
Override label text color.
final
position BadgePosition?
When set, badge uses absolute positioning for card overlays.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showDefaultIcon bool
Whether to show a default icon (star) when no icon is provided. Used by popular/recommended/new variants.
final
showDot bool
Whether to show a dot indicator (for status badges). Defaults to true for status variant, false for card overlay variants.
final
showGlow bool
Whether to show a glow effect on the indicator.
final
showPulse bool
Whether to show a pulse animation on the indicator.
final
size ComponentSize
Size variant (sm, md, lg).
final
status StatusType
The status type for status-style badges. Used to determine default colors if no accent color is specified.
final
variant BadgeVariant
Badge variant determining the overall style.
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