set method

Future<void> set({
  1. required String key,
  2. required String value,
})

Method to make set. It's called from rust

Implementation

Future<void> set({required String key, required String value}) async {
  try {
    return _set(key: key, value: value);
  } catch (_) {
    throw ErrorCode.Generic;
  }
}