OudsBadge constructor

  1. @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({
  1. Key? key,
  2. OudsBadgeStatus? status,
  3. OudsBadgeSize? size = OudsBadgeSize.medium,
  4. String? label,
  5. @Deprecated('icon is now defined by status (OudsIconStatus). Use Accent(icon: ...) or Neutral(icon: ...) for custom icons.') String? icon,
  6. Widget? child,
  7. bool enabled = true,
  8. 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;