BadButtonAsync constructor

const BadButtonAsync({
  1. Key? key,
  2. double? width,
  3. double? height,
  4. EdgeInsets? margin,
  5. EdgeInsets? padding,
  6. BoxConstraints? constraints,
  7. Border? border,
  8. double borderRadius = 0,
  9. Color? fill,
  10. Alignment? alignment = Alignment.center,
  11. required Future<void> onPressed(),
  12. required Widget pending,
  13. required Widget idle,
})

Implementation

const BadButtonAsync({
  super.key,
  this.width,
  this.height,
  this.margin,
  this.padding,
  this.constraints,
  this.border,
  this.borderRadius = 0,
  this.fill,
  this.alignment = Alignment.center,
  required this.onPressed,
  required this.pending,
  required this.idle,
});