Button constructor

const Button({
  1. Key? key,
  2. ButtonType style = ButtonType.primary,
  3. required void onPressed(),
  4. double? width,
  5. double? height,
  6. bool enabled = true,
  7. required String text,
  8. Icon? image,
})

Implementation

const Button({
  super.key,
  this.style = ButtonType.primary,
  required this.onPressed,
  this.width,
  this.height,
  this.enabled = true,
  required this.text,
  this.image,
});