setCustomTimeout method

Future<void> setCustomTimeout(
  1. Duration timeout
)

Sets a custom timeout for the conversation.

This replaces the current expiry time with a new one.

Example:

await conversation.setCustomTimeout(Duration(hours: 1));

Implementation

Future<void> setCustomTimeout(Duration timeout) async {
  await _plugin.setConversationTimeout(_storageKey, timeout);
}