StaticFilesServer constructor
Creates a static file server.
root: Directory to serve (default:lib/src/http/public)maxAgeSeconds: Cache duration (default: 1 hour)spaFallback: Returnindex.htmlfor unknown routes (default:false)
Implementation
StaticFilesServer({
Directory? root,
this.maxAgeSeconds = 3600,
this.spaFallback = false,
}) : root = root ?? Directory('lib/src/http/public');