wip: bloc for holidays

This commit is contained in:
2024-05-14 14:54:01 +02:00
parent 328c4f410c
commit 634fe41e78
23 changed files with 803 additions and 40 deletions

View File

@ -9,11 +9,11 @@ class LoadableState<TState> with _$LoadableState {
const LoadableState._();
const factory LoadableState({
@Default(true) bool isLoading,
@Default(null) TState? data,
@Default(null) int? lastFetch,
@Default(null) void Function()? reFetch,
@Default(null) LoadingError? error,
required bool isLoading,
required TState? data,
required int? lastFetch,
required void Function()? reFetch,
required LoadingError? error,
}) = _LoadableState;
bool _hasError() => error != null;

View File

@ -89,4 +89,3 @@ class _LoadableStateErrorBarTextState extends State<LoadableStateErrorBarText> {
super.dispose();
}
}