set method

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

Method to make set. It's called from rust

Implementation

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