OudsBadge constructor
- @Deprecated('Use named constructors for clarity: OudsBadge.standard() for standard type, OudsBadge.icon() for icon type, or OudsBadge.count() for count type.' ' This constructor will be removed in a future version.')
- Key? key,
- OudsBadgeStatus? status,
- OudsBadgeSize? size = OudsBadgeSize.medium,
- String? label,
- @Deprecated('icon is now defined by status (OudsIconStatus). Use Accent(icon: ...) or Neutral(icon: ...) for custom icons.') String? icon,
- Widget? child,
- bool enabled = true,
- String? semanticsLabel,
⚠️ DEPRECATED: Use OudsBadge.standard, OudsBadge.icon, or OudsBadge.count constructors instead.
Implementation
@Deprecated('Use named constructors for clarity: OudsBadge.standard() for standard type, OudsBadge.icon() for icon type, or OudsBadge.count() for count type.'
' This constructor will be removed in a future version.')
const OudsBadge({
super.key,
OudsBadgeStatus? status,
this.size = OudsBadgeSize.medium,
this.label,
@Deprecated(
'icon is now defined by status (OudsIconStatus). Use Accent(icon: ...) or Neutral(icon: ...) for custom icons.')
this.icon,
this.child,
this.enabled = true,
this.semanticsLabel,
}) : _deprecatedStatus = status,
status = null,
_withIcon = null;