EasyButton constructor

const EasyButton({
  1. Key? key,
  2. required Widget idleStateWidget,
  3. required Widget loadingStateWidget,
  4. EasyButtonType type = EasyButtonType.elevated,
  5. bool useWidthAnimation = true,
  6. bool useEqualLoadingStateWidgetDimension = true,
  7. double width = double.infinity,
  8. double height = 40.0,
  9. double contentGap = 0.0,
  10. double borderRadius = 0.0,
  11. double elevation = 0.0,
  12. Color buttonColor = Colors.blueAccent,
  13. Function? onPressed,
})

Implementation

const EasyButton({
  Key? key,
  required this.idleStateWidget,
  required this.loadingStateWidget,
  this.type = EasyButtonType.elevated,
  this.useWidthAnimation = true,
  this.useEqualLoadingStateWidgetDimension = true,
  this.width = double.infinity,
  this.height = 40.0,
  this.contentGap = 0.0,
  this.borderRadius = 0.0,
  this.elevation = 0.0,
  this.buttonColor = Colors.blueAccent,
  this.onPressed,
}) : super(key: key);