HUD constructor

HUD({
  1. Widget? progressIndicator,
  2. Color color = Colors.black,
  3. double opacity = 0.6,
  4. String? label,
  5. TextStyle? labelStyle,
  6. String? detailLabel,
  7. TextStyle? detailLabelStyle,
})

Initialize progress HUD template

Implementation

HUD({
  Widget? progressIndicator,
  this.color = Colors.black,
  this.opacity = 0.6,
  this.label,
  this.labelStyle,
  this.detailLabel,
  this.detailLabelStyle,
})  : assert(opacity >= 0.0 && opacity <= 1.0),
      progressIndicator = progressIndicator ??= const hud.ProgressIndicator();