StatefulDataView<T> constructor
const
StatefulDataView<T> ({
- Key? key,
- required StatefulData<
T> statefulData, - required Widget builder(
- BuildContext context,
- T data
- Widget? emptyView,
- Widget errorBuilder(
- BuildContext context,
- T? data,
- StatefulDataError? error
- Widget? initialLoadingView,
- Widget? initialLoadingErrorView,
- 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);