FLBadge constructor

FLBadge({
  1. Key? key,
  2. Color color = Colors.red,
  3. FLBadgeShape shape = FLBadgeShape.circle,
  4. TextStyle textStyle = const TextStyle(color: Colors.white, fontSize: 8),
  5. FLBadgePosition position = FLBadgePosition.topRight,
  6. bool hidden = false,
  7. double radius = _kDefaultRadius,
  8. String? text,
  9. 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);