LiteServer constructor
LiteServer({
- List<
HttpRoute> routes = const [], - void onRouteNotFound(
- HttpRequest request
- void onError(
- HttpRequest request,
- Object? error,
- StackTrace stackTrace
Implementation
LiteServer({this.routes = const [], this.onRouteNotFound, this.onError}) {
generateRouteMap();
}