JellyButton constructor
const
JellyButton({
- Key? key,
- Duration duration = const Duration(milliseconds: 500),
- Size size = const Size(40.0, 40.0),
- required VoidCallback onTap,
- required String unCheckedImgAsset,
- required String checkedImgAsset,
- bool checked = false,
- Color backgroundColor = Colors.transparent,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
Implementation
const JellyButton({
super.key,
this.duration = const Duration(milliseconds: 500),
this.size = const Size(40.0, 40.0),
required this.onTap,
required this.unCheckedImgAsset,
required this.checkedImgAsset,
this.checked = false,
this.backgroundColor = Colors.transparent,
this.padding = const EdgeInsets.all(8.0),
});