LocalAssetsServer constructor

LocalAssetsServer({
  1. required InternetAddress address,
  2. required String assetsBasePath,
  3. Directory? rootDir,
  4. int port = 0,
  5. 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;