class NotificationIntentStore {
  NotificationIntentStore._();

  static Map<String, dynamic>? _pendingData;

  static set pending(Map<String, dynamic> data) {
    _pendingData = Map<String, dynamic>.from(data);
  }

  static Map<String, dynamic>? get pending => _pendingData;

  static Map<String, dynamic>? consume() {
    final data = _pendingData;
    _pendingData = null;
    return data;
  }

  static bool get hasPending => _pendingData != null;
}
