delete method
Delete from local storage
Implementation
delete(String key) async {
try {
key = '${sanitizeFilename(key)}.boxx';
if (!kIsWeb) {
File file = File('$path/$key');
if (await file.exists()) {
file.delete();
}
}
} on Exception catch (e) {
debugPrint(e.toString());
}
}