From a45da453ce1396dd9fa3d536e76ea5b14150d8af Mon Sep 17 00:00:00 2001 From: bggRGjQaUbCoE Date: Thu, 10 Apr 2025 22:14:11 +0800 Subject: [PATCH] Revert "mod: revert success" This reverts commit 68f03f2311518b40a7137bb40c1b0f0ab39157b3. --- lib/http/loading_state.dart | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/http/loading_state.dart b/lib/http/loading_state.dart index 34a2e8377..229c5610d 100644 --- a/lib/http/loading_state.dart +++ b/lib/http/loading_state.dart @@ -18,19 +18,19 @@ class Success extends LoadingState { 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 {