Button constructor

const Button({
  1. Key? key,
  2. required String text,
  3. IconData? icon,
  4. required VoidCallback onPressed,
  5. Color? backgroundColor,
  6. bool expanded = false,
  7. bool thin = false,
  8. bool isLoading = false,
})

Implementation

const Button({
  super.key,
  required this.text,
  this.icon,
  required this.onPressed,
  this.backgroundColor,
  this.expanded = false,
  this.thin = false,
  this.isLoading = false,
});