ButtonWidget constructor

const ButtonWidget(
  1. String text,
  2. Function callback, {
  3. EdgeInsets? margin,
  4. double? height,
  5. Color? background = Colors.blue,
  6. FontWeight? fontWeight,
  7. Key? key,
})

Implementation

const ButtonWidget(this.text, this.callback,
   {this.margin,
   this.height,
   this.background = Colors.blue,
   this.fontWeight,
   Key? key})
   : super(key: key);