ConversationPlugin<CTX extends Context> constructor
ConversationPlugin<CTX extends Context> ({})
Creates a conversation plugin.
Implementation
ConversationPlugin({
ConversationStorage? storage,
String Function(CTX ctx)? getStorageKey,
this.defaultTimeout = const Duration(minutes: 30),
this.cleanupInterval = const Duration(minutes: 5),
this.onConversationExpired,
this.onConversationTimeout,
}) : storage = storage ?? MemoryConversationStorage(),
getStorageKey = getStorageKey ?? _defaultStorageKeyGenerator;