Button constructor

const Button({
  1. Key? key,
  2. required String text,
  3. dynamic onPressed()?,
  4. bool isPrimary = true,
  5. bool isDisabled = false,
  6. Color? color,
  7. Icon? leading,
})

Implementation

const Button({
  Key? key,
  required this.text,
  this.onPressed,
  this.isPrimary = true,
  this.isDisabled = false,
  this.color,
  this.leading,
}) : super(key: key);