UnreadBadge constructor

const UnreadBadge(
  1. {required int unread,
  2. Key? key,
  3. String? semanticsLabel,
  4. int maximumDigits = 3,
  5. Color? foregroundColor,
  6. Color? backgroundColor,
  7. double minWidth = 16,
  8. double minHeight = 16,
  9. Color? badgeContainerColor}
)

Displays the unread parameter in a red circle.

If not null, semanticsLabel is read instead of the unread amount if given.

maximumDigits represents how many digits will be shown. It must be equal or greater than 1 (if maximumDigits is 3, any number over 999 will be shown as 999+).

maximumDigits and unread must not be null.

Implementation

const UnreadBadge