identify method

void identify (
  1. String distinctId
)

Use this method to opt-in an already opted-out user from tracking. People updates and track calls will be sent to Mixpanel after using this method. This method will internally track an opt-in event to your project.

Implementation

void identify(String distinctId) {
  if (_MixpanelHelper.isValidString(distinctId)) {
    _channel.invokeMethod<void>(
        'identify', <String, dynamic>{'distinctId': distinctId});
  } else {
    developer.log('`identify` failed: distinctId cannot be blank',
        name: 'mixpanel');
  }
}