BaseFutureBuilder<T> constructor

BaseFutureBuilder<T>({
  1. Key? key,
  2. T? initialData,
  3. required Future<T> future(),
  4. required CustomFutureBuilderDone<T> onDone,
  5. 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));