GradientButton constructor

GradientButton({
  1. Key? key,
  2. double? height,
  3. double? width,
  4. Color? color1,
  5. Color? color2,
  6. String title = "Title",
  7. Color? textColor = Colors.black,
  8. TextStyle? titleStyle,
  9. void buttonFunctionality()?,
})

Implementation

GradientButton({
  Key? key,
  this.height,
  this.width,
  this.color1,
  this.color2,
  this.title = "Title",
  this.textColor = Colors.black,
  this.titleStyle,
  this.buttonFunctionality,
}) {
  buttonFun = buttonFunctionality;
}