logUser static method
Implementation
static Future<void> logUser(String uniqueId, [Object? userDetails]) async {
try {
Map<String, Object> args = <String, Object>{};
if (userDetails != null && userDetails.runtimeType == Object) {
args.putIfAbsent("userDetails", () => userDetails);
}
args.putIfAbsent("uniqueId", () => uniqueId);
await methodchannel.invokeMethod('logUser', args);
} catch(err){
throw Exception("error occured : ${err.toString()}");
}
}