FsEvent class

Represents a single filesystem event emitted by a Watcher.

Each event has a name (the absolute path of the affected file) and an op describing what happened.

Example:

watcher.events.listen((event) {
  print('${event.op} → ${event.name}');
});

Constructors

FsEvent({required String name, required Op op})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
The absolute path of the file or directory affected.
final
op → Op
The operation(s) that triggered this event.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited