setItem method

Future<bool> setItem(
  1. String key,
  2. String value
)

Implementation

Future<bool> setItem(String key, String value) async {
  try {
    await _lazyBox.put(key, value);
    return true;
  } catch (e) {
    return false;
  }
}