Router constructor Null safety
Creates a new Router.
Implementation
Router({String? basePath, Future Function(Request)? notFoundHandler})
: _unmatchedController = notFoundHandler,
_basePathSegments =
basePath?.split("/").where((str) => str.isNotEmpty).toList() ?? [] {
policy?.allowCredentials = false;
}