clearStash method

Future<bool> clearStash()

Implementation

Future<bool> clearStash() async
{
  bool ok = true;
  try
  {
    // clear rthe stash map
    _stash.map.clear();

    // save to the hive
    await _stash.upsert();
  }
  catch(e)
  {
    // stash failure always returns true
    ok = true;
  }
  return ok;
}