AsyncButton.elevatedButton constructor
const
AsyncButton.elevatedButton({
- required Text? text,
- Future<
void> onPressed()?, - Color color = Colors.grey,
- BorderRadius? borderRadius = BorderRadius.zero,
- Color? loadingColor,
- Color? loadingBackgroundColor = Colors.grey,
- double? elevation,
- AsyncStatus busyBuilder()?,
- 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);