flush method
Implementation
@override
Future<void> flush() async {
try {
final buffer = json.encode(_data);
window.localStorage.update(_fileName,
(val) => buffer,
ifAbsent: () => buffer,
);
} catch (e) {
log('WebLocalStorage::Error: $e');
}
}