badge method
Widget
badge({
- VxBadgeType type = VxBadgeType.round,
- Color? color,
- TextStyle? textStyle,
- int? count,
- bool limit = false,
- double? size,
- Widget? optionalWidget,
- VxBadgePosition position = VxBadgePosition.rightTop,
Extension method to directly access VxBadge with any widget without wrapping or with dot operator.
show badge extension
Implementation
Widget badge({
VxBadgeType type = VxBadgeType.round,
Color? color,
TextStyle? textStyle,
int? count,
bool limit = false,
double? size,
Widget? optionalWidget,
VxBadgePosition position = VxBadgePosition.rightTop,
}) =>
VxBadge(
textStyle: textStyle,
color: color,
limit: limit,
count: count,
position: position,
size: size,
type: type,
optionalWidget: optionalWidget,
child: this,
);