isDirectory property Null safety
true if the event target was a directory.
Note that if the file has been deleted by the time the event has arrived,
this will always be
false on Windows. In particular, it will always be
final bool isDirectory