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