logOut method

Future<void> logOut()

Log out of RevenueCat when the user signs out of DuTaTo. Clears the RevenueCat app_user_id so a subsequent sign-in doesn't inherit state.

Implementation

Future<void> logOut() async {
  if (!_isConfigured) return;
  try {
    await _purchases.logOut();
  } catch (e) {
    dev.log('logOut failed: $e', name: 'RevenueCatDatasource');
  }
}