Skip to content

Commit

Permalink
update user_info.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
anas-deriv committed Nov 15, 2024
1 parent 666bbb4 commit e88af47
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/analytics/lib/sdk/rudderstack/models/user_info.dart
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -19,4 +21,7 @@ class UserInfo {

/// Account type.
final String? accountType;

@override
List<Object?> get props => [userId, countryResidence, language, accountType];
}
1 change: 1 addition & 0 deletions packages/analytics/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e88af47

Please sign in to comment.