update dependencies and bump version to 0.1.7+45
- Bump version to `0.1.7+45` and update SDK constraint to `>=3.8.0 <4.0.0`. - Update numerous dependencies
This commit is contained in:
@@ -5,7 +5,7 @@ import 'loading_error.dart';
|
||||
part 'loadable_state.freezed.dart';
|
||||
|
||||
@freezed
|
||||
class LoadableState<TState> with _$LoadableState {
|
||||
abstract class LoadableState<TState> with _$LoadableState<TState> {
|
||||
const LoadableState._();
|
||||
|
||||
const factory LoadableState({
|
||||
@@ -14,7 +14,7 @@ class LoadableState<TState> with _$LoadableState {
|
||||
required int? lastFetch,
|
||||
required void Function()? reFetch,
|
||||
required LoadingError? error,
|
||||
}) = _LoadableState;
|
||||
}) = _LoadableState<TState>;
|
||||
|
||||
bool _hasError() => error != null;
|
||||
bool _hasData() => data != null;
|
||||
|
||||
Reference in New Issue
Block a user