mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -2,7 +2,7 @@ abstract class LoadingState<T> {
|
||||
const LoadingState();
|
||||
|
||||
factory LoadingState.loading() = Loading;
|
||||
factory LoadingState.empty() = Empty;
|
||||
// factory LoadingState.empty() = Empty;
|
||||
factory LoadingState.success(T response) = Success<T>;
|
||||
factory LoadingState.error(String errMsg) = Error;
|
||||
}
|
||||
@@ -11,9 +11,9 @@ class Loading extends LoadingState<Never> {
|
||||
const Loading();
|
||||
}
|
||||
|
||||
class Empty extends LoadingState<Never> {
|
||||
const Empty();
|
||||
}
|
||||
// class Empty extends LoadingState<Never> {
|
||||
// const Empty();
|
||||
// }
|
||||
|
||||
class Success<T> extends LoadingState<T> {
|
||||
final T response;
|
||||
|
||||
Reference in New Issue
Block a user