isDirectory property
final
Whether the event target is a directory.
The value will always be false for FileSystemDeleteEvent.
On Windows isDirectory is computed by checking the file system entity
type after the event, which means it can be incorrect. It can be incorrectly
false for a directory create, modify or move event if that directory was
deleted soon after the event occurred. And, it can be incorrectly true
for a newly created link to a directory.
Implementation
final bool isDirectory;