badge method

Widget badge({
  1. Key? key,
  2. Color? backgroundColor,
  3. Color? textColor,
  4. double? smallSize,
  5. double? largeSize,
  6. TextStyle? textStyle,
  7. EdgeInsetsGeometry? padding,
  8. AlignmentGeometry? alignment,
  9. Offset? offset,
  10. Widget? label,
  11. bool isLabelVisible = true,
})

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,
  );
}