HotReloader class
A utility class that watches the filesystem for changes, and starts new instances of an Angel server.
Constructors
Properties
- enableHotkeys → bool
-
If
true
(default), then developers canpress 'r' to reload
the application on-the-fly.final -
generator
→ FutureOr<
Angel> Function() -
Invoked to load a new instance of
Angel
on file changes.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
onChange
→ Stream<
WatchEvent> -
Fires whenever a file change. You might consider using this to trigger
page reloads in a client.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
The maximum amount of time to queue incoming requests for if there is no
server
available.no setter - vmServiceHost → String
-
The Dart VM service host.
final
- vmServicePort → int
-
The port to connect to the Dart VM service.
final
Methods
-
close(
) → Future -
handleRequest(
HttpRequest request) → Future -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendError(
HttpRequest request, int status, String title_, dynamic e) → void -
startServer(
[String address = '127.0.0.1', int port = 3000]) → Future< HttpServer> - Starts listening to requests and filesystem events.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited