diff --git a/lib/http/loading_state.dart b/lib/http/loading_state.dart index 34a2e837..229c5610 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 {