RippleButton constructor

RippleButton(
  1. String text, {
  2. dynamic onPressed()?,
  3. bool isEnabled = true,
  4. EdgeInsets padding = EdgeInsets.zero,
  5. String? heroTag,
  6. RippleButtonType type = RippleButtonType.NONE,
  7. RippleButtonStyle style = const RippleButtonStyle(),
  8. RippleButtonColor color = const RippleButtonColor(),
  9. RippleButtonBorder border = const RippleButtonBorder(),
  10. Widget? icon,
})

Implementation

RippleButton(
  this.text, {
  this.onPressed,
  this.isEnabled = true,
  this.padding = EdgeInsets.zero,
  this.heroTag,
  this.type = RippleButtonType.NONE,
  this.style = const RippleButtonStyle(),
  this.color = const RippleButtonColor(),
  this.border = const RippleButtonBorder(),
  this.icon,
});