identify method

Future<void> identify(
  1. String? userId
)

Identifies the user with the provided userId.

This is used to identify the user in the AppFit dashboard. When passing is null, the user will be un-identified, resulting in the user being anonymous.

Implementation

Future<void> identify(String? userId) async {
  _appFitCache.setUserId(userId);
}