Button constructor

const Button({
  1. Key? key,
  2. required CustomIcon? icon,
  3. bool center = true,
  4. Color color = Colors.transparent,
  5. BorderRadius borderRadius = BorderRadius.zero,
  6. required VoidCallback onPressed,
  7. String? text,
  8. EdgeInsets padding = EdgeInsets.zero,
  9. bool bold = false,
  10. bool multiLine = false,
})

Implementation

const Button({
  super.key,
  required this.icon,
  this.center = true,
  this.color = Colors.transparent,
  this.borderRadius = BorderRadius.zero,
  required this.onPressed,
  this.text,
  this.padding = EdgeInsets.zero,
  this.bold = false,
  this.multiLine = false,
});