LoadingModalOptions constructor
- required bool isVisible,
- Color backgroundColor = const Color.fromRGBO(0, 0, 0, 0.5),
- Color displayColor = Colors.black,
- Color? overlayColor,
- Widget? loadingText,
- bool showSpinner = true,
- Widget? spinner,
- double spinnerTextSpacing = 10,
- double? contentWidth,
- EdgeInsetsGeometry? contentPadding,
- Decoration? contentDecoration,
- AlignmentGeometry contentAlignment = Alignment.center,
- LoadingModalContainerBuilder? containerBuilder,
- LoadingModalContentBuilder? contentBuilder,
- LoadingModalSpinnerBuilder? spinnerBuilder,
- 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,
});