Dart API Reference
dart:io
FileSystemEvent
FileSystemEvent
class
Base event class emitted by
FileSystemEntity.watch
.
Base event class emitted by
FileSystemEntity.watch
.
Implementors
FileSystemCreateEvent
FileSystemModifyEvent
FileSystemDeleteEvent
FileSystemMoveEvent
Constants
CREATE
=
1 << 0
Bitfield for
FileSystemEntity.watch
, to enable
FileSystemCreateEvent
s.
MODIFY
=
1 << 1
Bitfield for
FileSystemEntity.watch
, to enable
FileSystemModifyEvent
s.
DELETE
=
1 << 2
Bitfield for
FileSystemEntity.watch
, to enable
FileSystemDeleteEvent
s.
MOVE
=
1 << 3
Bitfield for
FileSystemEntity.watch
, to enable
FileSystemMoveEvent
s.
ALL
=
CREATE | MODIFY | DELETE | MOVE
Bitfield for
FileSystemEntity.watch
, for enabling all of
CREATE
,
MODIFY
,
DELETE
and
MOVE
.
Instance Properties
type
int
read-only
The type of event. See
FileSystemEvent
for a list of events.
path
String
read-only
The path that triggered the event. Depending on the platform and the FileSystemEntity, the path may be relative.
isDirectory
bool
read-only
Is true if the event target was a directory.