storeOfflineEvent method
Implementation
void storeOfflineEvent(Map<String, dynamic> eventDetails) async {
if (!isDeviceConnected) {
_offlineEvents.add(eventDetails);
}
print(_offlineEvents);
// Store the offline events in secure storage
await _secureStorage.write(
key: 'offlineEvents',
value: json.encode(_offlineEvents),
);
}