openSession method

Future<Session> openSession({
  1. bool isTransaction = false,
})

Opens a session on the store.

Throws an AskarStoreException if opening the session fails.

Implementation

Future<Session> openSession({bool isTransaction = false}) async {
  _opener ??= OpenSession(store: handle, isTransaction: isTransaction);
  return await _opener!.open();
}