LoadingModalOptions constructor

const LoadingModalOptions({
  1. required bool isVisible,
  2. Color backgroundColor = const Color.fromRGBO(0, 0, 0, 0.5),
  3. Color displayColor = Colors.black,
  4. Color? overlayColor,
  5. Widget? loadingText,
  6. bool showSpinner = true,
  7. Widget? spinner,
  8. double spinnerTextSpacing = 10,
  9. double? contentWidth,
  10. EdgeInsetsGeometry? contentPadding,
  11. Decoration? contentDecoration,
  12. AlignmentGeometry contentAlignment = Alignment.center,
  13. LoadingModalContainerBuilder? containerBuilder,
  14. LoadingModalContentBuilder? contentBuilder,
  15. LoadingModalSpinnerBuilder? spinnerBuilder,
  16. LoadingModalTextBuilder? textBuilder,
})

Constructs a LoadingModalOptions object with the given configuration.

Implementation

const LoadingModalOptions({
  required this.isVisible,
  this.backgroundColor = const Color.fromRGBO(0, 0, 0, 0.5),
  this.displayColor = Colors.black,
  this.overlayColor,
  this.loadingText,
  this.showSpinner = true,
  this.spinner,
  this.spinnerTextSpacing = 10,
  this.contentWidth,
  this.contentPadding,
  this.contentDecoration,
  this.contentAlignment = Alignment.center,
  this.containerBuilder,
  this.contentBuilder,
  this.spinnerBuilder,
  this.textBuilder,
});