HostAtomDispatcher typedef

HostAtomDispatcher = Future<Object?> Function(String atomKey, String verb, List<Object?> args)

Dispatcher signature — given an atom key + verb + args list, the host computes the atom's return value (JSON-serializable). Errors thrown from the dispatcher are forwarded to the JS side as __hostReject with the exception's string form.

Implementation

typedef HostAtomDispatcher =
    Future<Object?> Function(String atomKey, String verb, List<Object?> args);