StaticFilesMiddleware({String fileSystemPath: 'web', bool serveFilesOutsidePath: false, String defaultDocument, bool listDirectories: false})

Source

StaticFilesMiddleware({
  this.fileSystemPath: 'web',
  this.serveFilesOutsidePath: false,
  this.defaultDocument,
  this.listDirectories: false
});