label property

Widget? label
final

The badge's content, typically a Text widget that contains 1 to 4 characters.

If the label is null then this is a "small" badge that's displayed as a smallSize diameter filled circle. Otherwise this is a StadiumBorder shaped "large" badge with height largeSize.

Implementation

final Widget? label;