AsyncButton.elevatedButton constructor

const AsyncButton.elevatedButton({
  1. required Text? text,
  2. Future<void> onPressed()?,
  3. Color color = Colors.grey,
  4. BorderRadius? borderRadius = BorderRadius.zero,
  5. Color? loadingColor,
  6. Color? loadingBackgroundColor = Colors.grey,
  7. double? elevation,
  8. AsyncStatus busyBuilder()?,
  9. Key? key,
})

Implementation

const AsyncButton.elevatedButton({required this.text, this.onPressed, this.color = Colors.grey, this.borderRadius = BorderRadius.zero, this.loadingColor, this.loadingBackgroundColor = Colors.grey, this.elevation, this.busyBuilder, Key? key}):
  type = AsyncButtonType.ELEVATED,
  icon = null,
  busyIcon = null,
  assert(text != null),
  super(key: key);