logOut static method

Future<CustomerInfo> logOut()

Logs out the Purchases client, clearing the saved appUserID. This will generate a random user id and save it in the cache.

Returns a CustomerInfo object, or throws a PlatformException if there was a problem restoring transactions or if the method is called while the current user is anonymous.

Implementation

static Future<CustomerInfo> logOut() async {
  final result = await _channel.invokeMethod('logOut');
  return CustomerInfo.fromJson(Map<String, dynamic>.from(result));
}