LocalAssetsServer constructor
LocalAssetsServer({
- required InternetAddress address,
- required String assetsBasePath,
- Directory? rootDir,
- int port = 0,
- Logger logger = const SilentLogger(),
Implementation
LocalAssetsServer({
required this.address,
required this.assetsBasePath,
// Pass this argument if you want your assets to be served from app directory, not from app bundle
Directory? rootDir,
// TCP port server will be listening on. Will choose an available port automatically if no port was passed
this.port = 0,
this.logger = const SilentLogger(),
}) : this._rootDir = rootDir;