FluentBadgeBaseState class

Everything needed to render a badge, independent of colour, size and appearance.

The counterpart of FluentButtonBaseState, and what makes "Fluent's state, my own styling, Fluent's rendering" a supported path rather than a fork. There is deliberately no enabled flag: Fluent gives Badge no disabled variant, and inventing one would be a visual treatment pretending to be a state.

Implementers
Annotations

Constructors

FluentBadgeBaseState({required FluentBadgeIconPosition iconPosition, Widget? icon, Widget? label})
Creates a base state.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → Widget?
The icon, if any.
final
iconPosition → FluentBadgeIconPosition
Which side the icon sits on.
final
label → Widget?
The label, if any. A badge with neither is a bare dot.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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