setConversationTimeout method
Sets a custom timeout for a specific conversation.
Implementation
Future<void> setConversationTimeout(String key, Duration timeout) async {
final state = await storage.get(key);
if (state != null) {
final expiresAt = DateTime.now().add(timeout);
final updatedState = state.copyWith(expiresAt: expiresAt);
await storage.set(key, updatedState);
}
}