FlenxServer constructor

FlenxServer({
  1. required SeoConfig seo,
  2. required RouteRegistry registry,
  3. required PageResolver resolvePage,
  4. required Component notFound,
  5. List<ApiEndpoint> apis = const [],
  6. DbExecutor? db,
  7. EmailSender? onEmail,
  8. TokenVerifier? tokenVerifier,
  9. List<StyleRule> styleRules = const [],
  10. List<String> rawStyles = const [],
  11. List<Component> headExtra = const [],
  12. List<Component> floatingButtons = const [],
  13. List<String> preloadImages = const [],
  14. bool emitHtaccess = true,
  15. String lang = 'pt-BR',
  16. String flutterBootstrap = 'flutter_bootstrap.js?cb=1',
})

Implementation

FlenxServer({
  required this.seo,
  required this.registry,
  required this.resolvePage,
  required this.notFound,
  this.apis = const [],
  this.db,
  this.onEmail,
  this.tokenVerifier,
  this.styleRules = const [],
  this.rawStyles = const [],
  this.headExtra = const [],
  this.floatingButtons = const [],
  this.preloadImages = const [],
  this.emitHtaccess = true,
  this.lang = 'pt-BR',
  this.flutterBootstrap = 'flutter_bootstrap.js?cb=1',
});