logout static method
Logs out current user, clears all saved data and resets SDK to uninitialized state.
You will need to call Apphud.start()
or Apphud.startManually()
again to initialize SDK with a new user.
This might be useful if you have your custom logout/login flow and
you want to take control of each logged-in user's subscription status.
If previous user had active subscription, the new logged-in user
can still restore purchases on this device and both users will be merged
under the previous paid one, because Apple ID is tied to a device.
Implementation
static Future<void> logout() => _channel.invokeMethod('logout');