AsyncButton.icon constructor

const AsyncButton.icon({
  1. required Widget? icon,
  2. Widget? busyIcon,
  3. Future<void> onPressed()?,
  4. Color color = Colors.grey,
  5. Color? loadingColor,
  6. Color? loadingBackgroundColor = Colors.grey,
  7. AsyncStatus busyBuilder()?,
  8. Key? key,
})

Implementation

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