ModulaExpandableButton constructor

const ModulaExpandableButton({
  1. required IconData icon,
  2. required List<ExpandableItem> items,
  3. Key? key,
  4. double size = 56,
  5. double distance = 70,
  6. double borderRadius = 16,
  7. Color backgroundColor = Colors.blue,
  8. Color foregroundColor = Colors.white,
  9. Duration animationDuration = const Duration(milliseconds: 300),
  10. bool showLabels = false,
  11. double elevation = 6.0,
})

Implementation

const ModulaExpandableButton({
  required this.icon,
  required this.items,
  super.key,
  this.size = 56,
  this.distance = 70,
  this.borderRadius = 16,
  this.backgroundColor = Colors.blue,
  this.foregroundColor = Colors.white,
  this.animationDuration = const Duration(milliseconds: 300),
  this.showLabels = false,
  this.elevation = 6.0,
});