wip: bloc for holidays
This commit is contained in:
@ -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;
|
||||
|
@ -89,4 +89,3 @@ class _LoadableStateErrorBarTextState extends State<LoadableStateErrorBarText> {
|
||||
super.dispose();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user