0

Is there a way to listen to the file content if it is change. Like for example I have a text with a message inside. I want to know if that message is change or if the file content is modified.

I'm FileSystemEntity watch but it doesn't seem to have triggered when I modify the file.

file.watch().listen((event) {
            print("Modified");
          });

This is my code for watching

Is it only works on directory?

Aquiko
  • 142
  • 1
  • 13

0 Answers0