LiveReloader class
A default Reloader.
- Inheritance
- Object
- Reloader
- LiveReloader
Constructors
- LiveReloader(Uri buildRunnerUri, Uri httpUri, Uri webSocketUri, { bool spa: true })
- Creates a new LiveReloader. [...]
Properties
- channel → WebSocketChannel
-
Channel to communicate via webSocketUri. [...]
read-only
- spa → bool
-
True if the server serves a Single Page Application (SPA).
final
- buildRunnerUri → Uri
-
final, inherited
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- proxyUri → Uri
-
final, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- webSocketUri → Uri
-
final, inherited
Methods
-
add(
_) → void -
Adds
data
to the sink. [...] -
close(
) → void - Closes the sink. [...]
-
handleFirstBuild(
) → void - Handles the first succeeded build. [...]
-
handleIncrementalBuild(
) → void - Handles any succeeded build other than the first one. [...]
-
shouldBeRewritten(
Uri uri) → bool -
Decides if
uri
should be rewritten to buildRunnerUri. [...] -
startHttpServer(
) → void -
Starts a server that passes every request to
build_runner serve
. [...] -
startWebSocketServer(
) → void - Starts WebSocket server at webSocketUri and set up channel.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
other) → bool -
The equality operator. [...]
inherited