File tree 1 file changed +23
-1
lines changed
lib/services/connection/api_manager
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change
1
+ import 'package:meta/meta.dart' ;
2
+
1
3
/// Connection information for a single connection.
4
+ @immutable
2
5
class ConnectionInformation {
3
6
/// Initializes a new instance of the [ConnectionInformation] class.
4
- ConnectionInformation ({
7
+ const ConnectionInformation ({
5
8
required this .appId,
6
9
required this .brand,
7
10
required this .endpoint,
@@ -23,4 +26,23 @@ class ConnectionInformation {
23
26
24
27
/// API language.
25
28
final String language;
29
+
30
+ @override
31
+ bool operator == (Object other) =>
32
+ identical (this , other) ||
33
+ other is ConnectionInformation &&
34
+ runtimeType == other.runtimeType &&
35
+ appId == other.appId &&
36
+ brand == other.brand &&
37
+ endpoint == other.endpoint &&
38
+ authEndpoint == other.authEndpoint &&
39
+ language == other.language;
40
+
41
+ @override
42
+ int get hashCode =>
43
+ appId.hashCode ^
44
+ brand.hashCode ^
45
+ endpoint.hashCode ^
46
+ authEndpoint.hashCode ^
47
+ language.hashCode;
26
48
}
You can’t perform that action at this time.
0 commit comments