writeAsync method

  1. @override
Future<void> writeAsync({
  1. required String content,
})
override

Implementation

@override
Future<void> writeAsync({
  required String content,
}) async {
  if (await _completerOpenDatabase.future) {}
  if (_isInitializedDatabase) {
    {
      final data = _database.transaction(
          pathToFile, _DatabaseIndexedOperationType.readwrite.name);
      final ob = data.objectStore(pathToFile);
      await ob.put(content, pathToFile);
    }
  }
  return;
}