OudsListItemTrailingBadge class

Trailing badge slot.

Accepts a Widget Function(bool enable) builder so the list item can forward its own enable state into the badge's enabled parameter.

Example:

OudsListItemTrailingBadge(
  (enable) => OudsBadge.standard(status: Info(), semanticsLabel: 'badge', enabled: enable),
)
Inheritance

Constructors

OudsListItemTrailingBadge(Widget badge(bool enable))
Creates a trailing badge configuration.
const

Properties

badge Widget Function(bool enable)
Builder used to render the badge with the current enabled state.
final
hashCode int
The hash code for this object.
no setterinherited
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