INNER CODE UNIT · Dart

Purchases

RevenueCat/purchases-flutter · lib/purchases_flutter.dart:46

class Purchases {
  static final Set<CustomerInfoUpdateListener> _customerInfoUpdateListeners =
      {};

  static final Set<ReadyForPromotedProductPurchaseListener>
      _readyForPromotedProductPurchaseListeners = {};

  static CustomerInfo? _lastReceivedCustomerInfo;

  static LogHandler? _logHandler;

  static final _channel = const MethodChannel('purchases_flutter')
    ..setMethodCallHandler((call) async {
      switch (call.method) {
        case 'Purchases-CustomerInfoUpdated':
          final args = Map<String, dynamic>.from(call.arguments);
          final customerInfo = CustomerInfo.fromJson(args);
          _lastReceivedCustomerInfo = customerInfo;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…