identifyUser method
- String? userId
Identifies the user with the provided userId.
This is used to identify the user in the AppFit dashboard.
If the userId is null, the user will be un-identified,
resulting in the user being anonymous.
Implementation
void identifyUser(String? userId) async {
await eventDigester.identify(userId);
// This is a unique event that is used specifically to track when the
// AppFit SDK has been identified a user
// This is an internal event.
trackEvent("appfit_user_identified");
}