LocalAssetsServer class Null safety

Constructors

LocalAssetsServer({required InternetAddress address, required String assetsBasePath, Directory? rootDir, int port = 0, Logger logger = const SilentLogger()})

Properties

address InternetAddress
Server address
final
assetsBasePath String
Assets base path
final
boundPort int?
Actual port server is listening on
read-only
hashCode int
The hash code for this object.
read-only, inherited
logger Logger
final
port int
Optional server port (note: might be already taken) Defaults to 0 (binds server to a random free port)
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
serve({bool shared = false}) Future<InternetAddress>
Starts server
stop() Future<void>
toString() String
A string representation of this object.
inherited

Operators

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