isActive method

Future<bool> isActive()

Checks if this conversation is still active.

Implementation

Future<bool> isActive() async {
  final state = await _storage.get(_storageKey);
  return state != null &&
      state.isActive &&
      !_plugin._isConversationExpired(state);
}