OverlayWidget constructor

const OverlayWidget({
  1. Key? key,
  2. bool loading = false,
  3. bool error = false,
  4. bool empty = false,
  5. required String? errorMessage,
  6. required Widget child,
  7. Widget? loadingChild,
  8. Widget? emptyChild,
  9. VoidCallback? onRetry,
})

Implementation

const OverlayWidget({
  Key? key,
  this.loading = false,
  this.error = false,
  this.empty = false,
  required this.errorMessage,
  required this.child,
  this.loadingChild,
  this.emptyChild,
  this.onRetry,
}) : super(key: key);