getAnalyticsUserId method
An id that is always available: the current user id when set, otherwise the persisted anonymous id. Android needs the Android SDK release that adds it.
Implementation
@override
Future<String> getAnalyticsUserId() async {
final id = await methodChannel.invokeMethod<String>('getAnalyticsUserId');
return id!;
}