IconWithBadge constructor
const
IconWithBadge(- IconData? icon,
- {Key? key,
- Color? color,
- double? fill,
- double? grade,
- int maximumDigits = 3,
- double? opticalSize,
- String? semanticLabel,
- String? semanticsLabel,
- List<Shadow>? shadows,
- double size = 24,
- TextDirection? textDirection,
- int unread = 0,
- double? weight,
- Color? iconContainerColor}
)
Displays an icon with an optional unread badge if the unread parameter is given. The optional semanticsLabel
parameter is used by the unreadBadge child.
No badge will show if unread is 0.
All parameters except semanticsLabel must not be null.
Implementation
const IconWithBadge