FLBadge constructor
FLBadge({
- Key? key,
- Color color = Colors.red,
- FLBadgeShape shape = FLBadgeShape.circle,
- TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 8),
- FLBadgePosition position = FLBadgePosition.topRight,
- double radius = _kDefaultRadius,
- String? text,
- required Widget child,
Implementation
FLBadge(
{Key? key,
this.color = Colors.red,
this.shape = FLBadgeShape.circle,
this.textStyle = const TextStyle(color: Colors.white, fontSize: 8),
this.position = FLBadgePosition.topRight,
this.hidden = false,
this.radius = _kDefaultRadius,
this.text,
required this.child})
: super(key: key);