BasicFutureBuilder<T> constructor
BasicFutureBuilder<T> ({
- Key? key,
- T? initialData,
- required Future<
T> future(), - required CustomFutureBuilderDone<
T> onDone, - CustomFutureBuilderNone? onNone,
Implementation
BasicFutureBuilder({
super.key,
super.initialData,
required super.future,
required super.onDone,
CustomFutureBuilderNone? onNone,
}) : super(
onNone:
onNone ?? (_, __) => const Center(child: BasicPlaceholder()),
onWaiting: (_) => const Center(child: BasicLoading()),
onError: (_, __, reset) => BasicError(onTap: reset));