GenericDataHandlerWidget constructor
const
GenericDataHandlerWidget({
- Key? key,
- required bool hasError,
- required String errorMessage,
- required bool isLoading,
- required Widget loadingChild,
- required Widget child,
- String? errorTitle,
- String? buttonText,
- ContainedButton? customButton,
- TextStyle? titleStyle,
- TextStyle? messageStyle,
- void onTryAgain()?,
- bool buttonUppercase = true,
- bool buttonIsBusy = false,
Implementation
const GenericDataHandlerWidget({
Key? key,
required this.hasError,
required this.errorMessage,
required this.isLoading,
required this.loadingChild,
required this.child,
this.errorTitle,
this.buttonText,
this.customButton,
this.titleStyle,
this.messageStyle,
this.onTryAgain,
this.buttonUppercase = true,
this.buttonIsBusy = false,
}) : super(key: key);