ButtonCustom constructor

const ButtonCustom(
  1. Function onPress,
  2. String title, {
  3. Color? color,
  4. Color textColor = Colors.white,
  5. double elevation = 4.0,
  6. EdgeInsets? padding,
  7. Color borderColor = Colors.transparent,
  8. double? size,
  9. double? radius,
  10. FontWeight weight = FontWeight.bold,
  11. double borderWidth = 1.0,
  12. Key? key,
})

Implementation

const ButtonCustom(this.onPress, this.title, {this.color,
  this.textColor = Colors.white, this.elevation = 4.0, this.padding,
  this.borderColor = Colors.transparent, this.size, this.radius,
  this.weight = FontWeight.bold, this.borderWidth = 1.0, Key? key}):super(key:key);