identify method
void
identify({})
override
Identify a person using a unique userId, eg. email id. Note that you can identify only 1 profile at a time. In case, multiple identifiers are attempted to be identified, then the last identified profile will be removed automatically.
Implementation
@override
void identify(
{required String userId, Map<String, dynamic> traits = const {}}) {
return methodChannel.invokeNativeMethodVoid(NativeMethods.identify, {
NativeMethodParams.userId: userId,
NativeMethodParams.traits: traits,
});
}