GlassBadge.dot constructor

const GlassBadge.dot({
  1. required Widget child,
  2. Key? key,
  3. Color? dotColor = CupertinoColors.systemGreen,
  4. BadgePosition position = BadgePosition.topRight,
  5. LiquidGlassSettings? settings,
  6. GlassQuality? quality,
  7. String? semanticLabel,
})

Creates a dot badge (status indicator).

Use for online/offline status, active state indicators, etc.

semanticLabel overrides the default "Active" VoiceOver announcement:

GlassBadge.dot(
  color: Colors.green,
  semanticLabel: 'Online',
  child: Avatar(...),
)

Implementation

const GlassBadge.dot({
  required this.child,
  super.key,
  this.dotColor = CupertinoColors.systemGreen,
  this.position = BadgePosition.topRight,
  this.settings,
  this.quality,
  this.semanticLabel,
})  : isDot = true,
      count = 0,
      backgroundColor = null,
      textColor = null,
      showZero = false,
      maxCount = 99,
      semanticCount = null;