setObject<T> method

Future<bool> setObject<T>(
  1. dynamic key,
  2. T value
)

set object

Implementation

Future<bool> setObject<T>(dynamic key, T value) async {
  if (!isOpen) await openBox();
  await box().put(key, value);
  return containsKey(key);
}