HotReloader constructor

HotReloader(
  1. FutureOr<Angel> generator(),
  2. Iterable paths, {
  3. Duration? timeout,
  4. String vmServiceHost = 'localhost',
  5. int vmServicePort = 8181,
  6. bool enableHotkeys = true,
})

Initializes a hot reloader that proxies the server created by generator.

paths can contain FileSystemEntity, Uri, String and Glob only. URI's can be package: URI's as well.

Implementation

HotReloader(this.generator, Iterable paths,
    {Duration? timeout,
    this.vmServiceHost = 'localhost',
    this.vmServicePort = 8181,
    this.enableHotkeys = true}) {
  _timeout = timeout ?? Duration(seconds: 5);
  _paths.addAll(paths);
}