ToggleBubbleComponent constructor
const
ToggleBubbleComponent({
- required void onPressed(),
- BoxShape shape = BoxShape.circle,
- double buttonSize = 60,
- double iconSize = 30,
- Color iconColor = Colors.greenAccent,
- Color iconFlippedColor = Colors.white,
- IconData icon = Icons.favorite_border,
- IconData iconFlipped = Icons.favorite_border,
- Duration duration = const Duration(milliseconds: 800),
- 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);