GenericDataHandlerWidget constructor

const GenericDataHandlerWidget({
  1. Key? key,
  2. required bool hasError,
  3. required String errorMessage,
  4. required bool isLoading,
  5. required Widget loadingChild,
  6. required Widget child,
  7. String? errorTitle,
  8. String? buttonText,
  9. ContainedButton? customButton,
  10. TextStyle? titleStyle,
  11. TextStyle? messageStyle,
  12. void onTryAgain()?,
  13. bool buttonUppercase = true,
  14. 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);