HUD constructor
HUD({
- Widget? progressIndicator,
- Color color = Colors.black,
- double opacity = 0.6,
- String? label,
- TextStyle? labelStyle,
- String? detailLabel,
- TextStyle? detailLabelStyle,
- BoxDecoration? decoration,
- EdgeInsetsGeometry? padding,
Initialize progress HUD template
Implementation
HUD({
Widget? progressIndicator,
this.color = Colors.black,
this.opacity = 0.6,
this.label,
this.labelStyle,
this.detailLabel,
this.detailLabelStyle,
this.decoration,
this.padding,
}) : assert(opacity >= 0.0 && opacity <= 1.0),
progressIndicator =
progressIndicator ??= const CircularProgressIndicator.adaptive();