FutureWidget<T>.unsafeOnlyData constructor
const
FutureWidget<T>.unsafeOnlyData ({
- required FutureGenWithInitialData<
T> futureGen, - required DataBuilder<
T> onData, - required void isRefreshingCallback(
- bool isRefreshingState
- required WidgetBuilder onLoading,
- bool keepAlive = false,
- Key? key,
Creates a widget that builds depending on the state of a
FutureContext
.
printErrorsToConsole
is always set to true
(in case an unexpected
error happens).
Implementation
const FutureWidget.unsafeOnlyData({
required FutureGenWithInitialData<T> this.futureGen,
required this.onData,
required this.isRefreshingCallback,
required WidgetBuilder onLoading,
this.keepAlive = false,
super.key,
}) : onLoadingWithoutFirstLoad = onLoading,
onLoadingWithFirstLoad = null,
onError = null;