ToggleBubbleComponent constructor

const ToggleBubbleComponent({
  1. required void onPressed(),
  2. BoxShape shape = BoxShape.circle,
  3. double buttonSize = 60,
  4. double iconSize = 30,
  5. Color iconColor = Colors.greenAccent,
  6. Color iconFlippedColor = Colors.white,
  7. IconData icon = Icons.favorite_border,
  8. IconData iconFlipped = Icons.favorite_border,
  9. Duration duration = const Duration(milliseconds: 800),
  10. Key? key,
})

Implementation

const ToggleBubbleComponent(
    {required this.onPressed,
    this.shape = BoxShape.circle,
    this.buttonSize = 60,
    this.iconSize = 30,
    this.iconColor = Colors.greenAccent,
    this.iconFlippedColor = Colors.white,
    this.icon = Icons.favorite_border,
    this.iconFlipped = Icons.favorite_border,
    this.duration = const Duration(milliseconds: 800),
    Key? key})
    : super(key: key);