mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: revert success
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -18,19 +18,19 @@ class Success<T> extends LoadingState<T> {
|
||||
final T response;
|
||||
const Success(this.response);
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) {
|
||||
if (identical(this, other)) {
|
||||
return true;
|
||||
}
|
||||
if (other is Success) {
|
||||
return response == other.response;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
// @override
|
||||
// bool operator ==(Object other) {
|
||||
// if (identical(this, other)) {
|
||||
// return true;
|
||||
// }
|
||||
// if (other is Success) {
|
||||
// return response == other.response;
|
||||
// }
|
||||
// return false;
|
||||
// }
|
||||
|
||||
@override
|
||||
int get hashCode => response.hashCode;
|
||||
// @override
|
||||
// int get hashCode => response.hashCode;
|
||||
}
|
||||
|
||||
class Error extends LoadingState<Never> {
|
||||
|
||||
Reference in New Issue
Block a user