RaygunUserInfo constructor
Set the current user's info to be transmitted some parameters can be null if the data is not available or you do not wish to send it.
Implementation
RaygunUserInfo({
String? identifier,
this.firstName,
this.fullName,
this.email,
}) {
if (identifier == null || identifier.isEmpty) {
Settings.deviceUuid().then((value) {
_identifier = value;
RaygunLogger.i('Assigned ID to anonymous user: $_identifier');
});
isAnonymous = true;
RaygunLogger.i('Created anonymous user');
} else {
_identifier = identifier;
isAnonymous = false;
RaygunLogger.i('Created user with id: $identifier');
}
}