LocalAssetsServer class

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
no setter
hashCode int
The hash code for this object.
no setterinherited
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.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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