getDistinctId method Null safety

Future<String?> getDistinctId()

Returns the current distinct id of the user. This is either the id automatically generated by the library or the id that has been passed by a call to identify().

example of usage:

   const distinctId = await mixpanel.getDistinctId();

return Future the distinct id associated with Mixpanel event and People Analytics

Implementation

Future<String?> getDistinctId() {
  return _channel.invokeMethod<String>('getDistinctId');
}