mod: revert success

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-10 14:18:20 +08:00
parent 2a60a9b393
commit 68f03f2311

View File

@@ -18,19 +18,19 @@ class Success<T> extends LoadingState<T> {
final T response; final T response;
const Success(this.response); const Success(this.response);
@override // @override
bool operator ==(Object other) { // bool operator ==(Object other) {
if (identical(this, other)) { // if (identical(this, other)) {
return true; // return true;
} // }
if (other is Success) { // if (other is Success) {
return response == other.response; // return response == other.response;
} // }
return false; // return false;
} // }
@override // @override
int get hashCode => response.hashCode; // int get hashCode => response.hashCode;
} }
class Error extends LoadingState<Never> { class Error extends LoadingState<Never> {