clearLocations static method

Future<bool> clearLocations()

Clear all stored locations

Implementation

static Future<bool> clearLocations() async {
  try {
    if (_database == null) await _initDatabase();
    await _database!.delete('locations');
    return true;
  } catch (e) {
    print('Error clearing locations: $e');
    return false;
  }
}