HotReloader class
Hot code swap/reload service that uses https://pub-web.flutter-io.cn/packages/watcher to monitor the file system for changes in *.dart files
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isWatching → bool
-
no setter
- 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
-
reloadCode(
{bool force = false}) → Future< HotReloadResult> - Triggers reload of code from all source files.
-
stop(
) → Future< void> - Stops watching for changes on the file system
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- logLevel ↔ Level
-
getter/setter pair
Static Methods
-
create(
{bool automaticReload = true, Duration debounceInterval = const Duration(seconds: 1), bool watchDependencies = true, bool onBeforeReload(BeforeReloadContext ctx)?, void onAfterReload(AfterReloadContext ctx)?}) → Future< HotReloader> - Creates a new HotReloader instance