write method

void write(
  1. String key,
  2. Object value
)

Implementation

void write(String key, final Object value) {
  if (isClosed) {
    return;
  }

  _execute(
    (functions, transaction, database) {
      ErrorHandler(
        functions.mdbPut(
          transaction,
          database.value,
          mdbFromUint8List(serialize(key)),
          mdbFromUint8List(serialize(value)),
          0,
        ),
      );
    },
  );
}