FileWatcher class

Service for watching file changes and triggering regeneration

Constructors

FileWatcher(GenConfig config, {String? workingDir, Duration debounceDelay = const Duration(milliseconds: 500)})

Properties

config GenConfig
final
debounceDelay Duration
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
workingDir String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
startWatching({void onBuildComplete(GenStats stats)?, void onError(String error)?}) Future<void>
Start watching for file changes
stopWatching() Future<void>
Stop watching
toString() String
A string representation of this object.
inherited

Operators

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