SafaehSheetDataLoader<T extends Object> constructor
const
SafaehSheetDataLoader<T extends Object> ({
- Key? key,
- required FutureOr<
T> load(- bool retry
- required Widget builder(
- BuildContext context,
- T data
- T? initialData,
- Widget? header,
- IconData icon = Icons.hourglass_top_rounded,
- SafaehSheetLoadLabels labels = const SafaehSheetLoadLabels(),
- Duration timeout = const Duration(seconds: 20),
- void onError(
- Object error,
- StackTrace stack
- WidgetBuilder? loadingBuilder,
- Widget errorBuilder(
- BuildContext context,
- Object error,
- StackTrace stack,
- VoidCallback retry,
- Key? retryKey,
- EdgeInsetsGeometry? padding,
Implementation
const SafaehSheetDataLoader({
super.key,
required this.load,
required this.builder,
this.initialData,
this.header,
this.icon = Icons.hourglass_top_rounded,
this.labels = const SafaehSheetLoadLabels(),
this.timeout = const Duration(seconds: 20),
this.onError,
this.loadingBuilder,
this.errorBuilder,
this.retryKey,
this.padding,
});