close method

Future<void> close()

Closes the session without specifying the commit behaviour.

Throws an AskarSessionException if the session is closed.

Implementation

Future<void> close() async {
  _throwOnNullHandle('Cannot close a closed session');

  await handle!.close(false);
  handle = null;
}