diff --git a/packages/analytics/lib/sdk/rudderstack/models/user_info.dart b/packages/analytics/lib/sdk/rudderstack/models/user_info.dart index b8e7d2032..3538304d3 100644 --- a/packages/analytics/lib/sdk/rudderstack/models/user_info.dart +++ b/packages/analytics/lib/sdk/rudderstack/models/user_info.dart @@ -1,7 +1,9 @@ +import 'package:equatable/equatable.dart'; + /// User Info model. -class UserInfo { +class UserInfo extends Equatable { /// Constructor for User Info model. - UserInfo({ + const UserInfo({ required this.userId, this.countryResidence, this.language, @@ -19,4 +21,7 @@ class UserInfo { /// Account type. final String? accountType; + + @override + List get props => [userId, countryResidence, language, accountType]; } diff --git a/packages/analytics/pubspec.yaml b/packages/analytics/pubspec.yaml index 689249387..1fb6ab9d6 100644 --- a/packages/analytics/pubspec.yaml +++ b/packages/analytics/pubspec.yaml @@ -14,6 +14,7 @@ dependencies: firebase_analytics: ^11.3.2 rudder_sdk_flutter: ^2.6.0 datadog_flutter_plugin: ^1.6.2 + equatable: ^2.0.5 flutter: sdk: flutter