saveLocally method

void saveLocally(
  1. ID id,
  2. dynamic value,
  3. bool isSavedLocally
)

Implementation

void saveLocally(ID id, dynamic value, bool isSavedLocally) {
  if (!isSavedLocally) return;
  getBox.then((box) => box.put(id, value));
}