setUserData static method
Set user data
Implementation
static Future<void> setUserData({required LRUserData userData}) async {
try {
await _channel.invokeMethod('setUserData', {
'userData': userData.toJSON(),
});
developer.log('User data set successfully', name: packageName);
} on PlatformException catch (e) {
developer.log('Failed to set user data: ${e.message}',
error: e, name: packageName);
rethrow;
}
}