StatefulDataView<T> constructor

const StatefulDataView<T>({
  1. Key? key,
  2. required StatefulData<T> statefulData,
  3. required Widget builder(
    1. BuildContext context,
    2. T data
    ),
  4. Widget? emptyView,
  5. Widget errorBuilder(
    1. BuildContext context,
    2. T? data,
    3. StatefulDataError? error
    )?,
  6. Widget? initialLoadingView,
  7. Widget? initialLoadingErrorView,
  8. Widget? loadingView,
})

Creates StatefulDataView widget.

Implementation

const StatefulDataView({
  Key? key,
  required this.statefulData,
  required this.builder,
  this.emptyView,
  this.errorBuilder,
  this.initialLoadingView,
  this.initialLoadingErrorView,
  this.loadingView,
}) : super(key: key);