JellyButton constructor

const JellyButton({
  1. Key? key,
  2. Duration duration = const Duration(milliseconds: 500),
  3. Size size = const Size(40.0, 40.0),
  4. required VoidCallback onTap,
  5. required String unCheckedImgAsset,
  6. required String checkedImgAsset,
  7. bool checked = false,
  8. Color backgroundColor = Colors.transparent,
  9. 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),
});