send method
Implementation
Future<dynamic> send(dynamic request) async {
var handler = _handlers[request.runtimeType];
if (handler == null) {
throw Exception('No handler registered for ${request.runtimeType}.');
}
try {
var result = await handler.handle(request);
return result;
} catch (e) {
throw Exception('Error handling request: $e');
}
}