SafaehAsyncBody constructor

const SafaehAsyncBody({
  1. Key? key,
  2. required bool isLoading,
  3. Object? error,
  4. StackTrace? stackTrace,
  5. bool isEmpty = false,
  6. required WidgetBuilder data,
  7. WidgetBuilder? loading,
  8. Widget errorBuilder(
    1. BuildContext context,
    2. Object error,
    3. StackTrace? stack
    )?,
  9. WidgetBuilder? empty,
})

Implementation

const SafaehAsyncBody({
  super.key,
  required this.isLoading,
  this.error,
  this.stackTrace,
  this.isEmpty = false,
  required this.data,
  this.loading,
  this.errorBuilder,
  this.empty,
});