call method
The implementation of this HandlerObject
Implementation
@override
FutureOr<Result> call(final Request req) async {
final indexFuture = _indexFuture;
if (indexFuture != null) await indexFuture;
return switch (entity) {
Directory() => _handleDirectory(req, entity as Directory),
File() => _handleFile(req, entity as File),
// coverage: ignore-line
_ => throw StateError('Unsupported entity type: ${entity.runtimeType}'),
};
}