AsyncButton.textButton constructor

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

Implementation

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