FileSystemEvent class

Base event class emitted by FileSystemEntity.watch.

Implemented by

Constants

ALLint

Bitfield for FileSystemEntity.watch, for enabling all of CREATE, MODIFY, DELETE and MOVE.

CREATE | MODIFY | DELETE | MOVE
CREATEint

Bitfield for FileSystemEntity.watch, to enable FileSystemCreateEvents.

1 << 0
DELETEint

Bitfield for FileSystemEntity.watch, to enable FileSystemDeleteEvents.

1 << 2
MODIFYint

Bitfield for FileSystemEntity.watch, to enable FileSystemModifyEvents.

1 << 1
MOVEint

Bitfield for FileSystemEntity.watch, to enable FileSystemMoveEvents.

1 << 3

Properties

isDirectorybool
final

Is true if the event target was a directory.

pathString
final

The path that triggered the event. Depending on the platform and the FileSystemEntity, the path may be relative.

typeint
final

The type of event. See FileSystemEvent for a list of events.

hashCodeint
read-only, inherited

The hash code for this object.

runtimeTypeType
read-only, inherited

A representation of the runtime type of the object.

Operators

operator ==(other) → bool
inherited

The equality operator.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited

Invoked when a non-existent method or property is accessed.

toString() → String
inherited

Returns a string representation of this object.

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/FileSystemEvent-class.html