Server constructor
Server({
- GlobalKey<
State< ? key,StatefulComponent> > - HttpService? httpService,
- WebSocketService? socketService,
- DataAccess? dataAccess,
- Crypto? cryptoService,
- Logger? logger,
- String? rootName,
- Component? rootEndpoint,
- Authorization? authorization,
- required List<
Component> children, - String? faviconDirectory,
- Map<
Type, ExceptionEndpoint< ? defaultExceptionEndpoints,Exception> >
Implementation
Server(
{GlobalKey? key,
this.httpService,
this.socketService,
this.dataAccess,
this.cryptoService,
Logger? logger,
String? rootName,
this.rootEndpoint,
this.authorization,
required this.children,
this.faviconDirectory,
Map<Type, ExceptionEndpoint>? defaultExceptionEndpoints})
: logger = logger ?? DefaultLogger(),
rootName = rootName ?? "style_server",
defaultExceptionEndpoints = defaultExceptionEndpoints ??
{
Exception: DefaultExceptionEndpoint<Exception>(),
},
super(key: key ?? GlobalKey<ServiceState>.random()) {
this.defaultExceptionEndpoints[Exception] ??=
DefaultExceptionEndpoint<Exception>();
}