How do I listen to a file's events in local directory in Flutter?

Viewed 452

I wonder if we could listen to a path and if the file is created / changed then it can trigger something like onData.

Something like:

File file = File(path);

file.listen((){});

file.onData((file) => doSomethingWithTheFile);
0 Answers
Related