BaseButton constructor

const BaseButton({
  1. Key? key,
  2. String text = 'Button',
  3. required Function onPressed,
  4. Color color = Colors.blue,
  5. Color textColor = Colors.white,
})

Implementation

const BaseButton({
  super.key,
  this.text = 'Button',
  required this.onPressed,
  this.color = Colors.blue,
  this.textColor = Colors.white,
});