Revert "mod: revert success"

This reverts commit 68f03f2311.
This commit is contained in:
bggRGjQaUbCoE
2025-04-10 22:14:11 +08:00
parent e1b73f4766
commit a45da453ce

View File

@@ -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> {