getCustomerInfo method

Future<CustomerInfo?> getCustomerInfo()

Read the cached customer state (after configure + first fetch).

Implementation

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