setName method Null safety

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

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

@override
Future<Success> setName(String isolateId, String name) =>
    _call('setName', {'isolateId': isolateId, 'name': name});