LocalServer class Null safety

Local web server used for blake serve command.

This server binds to address and starts both HTTP and WebSocket (for live-reload) handler.

Constructors

LocalServer(String path, {String address = '127.0.0.1', int port = 4040, int websocketPort = 4041, required Stream<void> onReload})

Properties

address String
Server address.
final
hashCode int
The hash code for this object. [...]
read-only, inherited
httpServer HttpServer
read / write
onReload Stream<void>
final
path String
Directory where should the LocalServer be started.
final
port int
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
websocketPort int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
start() Future<void>
toString() String
A string representation of this object. [...]
inherited

Operators

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