BasicFutureBuilder<T> constructor

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