RoundButton constructor

const RoundButton({
  1. Key? key,
  2. required AppTheme theme,
  3. String? text,
  4. double size = 50,
  5. double textSize = 16,
  6. required IconData icon,
  7. Color color = Colors.white,
  8. Color? iconColor,
  9. Color backgroundColor = Colors.transparent,
  10. double iconSize = 24,
  11. void onPressed()?,
  12. bool selected = false,
})

Implementation

const RoundButton({
  super.key,
  required this.theme,
  this.text,
  this.size = 50,
  this.textSize = 16,
  required this.icon,
  this.color = Colors.white,
  Color? iconColor,
  this.backgroundColor = Colors.transparent,
  this.iconSize = 24,
  this.onPressed,
  this.selected = false,
}) : iconColor = iconColor ?? color;