identifyUser static method
Sets the default value of the user's email
and hides the email field from the reporting UI
and set the user's name
to be included with all reports.
It also reset the chats on device to that email and removes user attributes,
user data and completed surveys.
Implementation
static Future<void> identifyUser(String email, [String? name]) async {
final List<dynamic> params = <dynamic>[email, name];
await _channel.invokeMethod<Object>('identifyUserWithEmail:name:', params);
}