setName method Null safety

Future<Success> setName(
  1. String isolateId,
  2. String name
)

The setName RPC is used to change the debugging name for an isolate.

If isolateId refers to an isolate which has exited, then the Collected Sentinel is returned.

See Success.

This method will throw a SentinelException in the case a Sentinel is returned.

Implementation

Future<Success> setName(String isolateId, String name);