sendNotification method
Sends a JSON-RPC 2 request to invoke the given method
without expecting
a response.
If passed, parameters
is the parameters for the method. This must be
either an Iterable (to pass parameters by position) or a Map with
String keys (to pass parameters by name). Either way, it must be
JSON-serializable.
Since this is just a notification to which the server isn't expected to send a response, it has no return value.
Throws a StateError if the client is closed when this method is called.
Implementation
void sendNotification(String method, [parameters]) =>
_send(method, parameters);