badge method
A Material Design "badge".
Implementation
Widget badge({
Key? key,
Color? backgroundColor,
Color? textColor,
double? smallSize,
double? largeSize,
TextStyle? textStyle,
EdgeInsetsGeometry? padding,
AlignmentGeometry? alignment,
Offset? offset,
Widget? label,
bool isLabelVisible = true,
}) {
return Badge(
key: key,
backgroundColor: backgroundColor,
textColor: textColor,
smallSize: smallSize,
largeSize: largeSize,
textStyle: textStyle,
padding: padding,
alignment: alignment,
offset: offset,
label: label,
isLabelVisible: isLabelVisible,
child: this,
);
}