description

# getIsolateId static method

1. @Since.new('3.2')

String? getIsolateId(

1. Isolate isolate

)

Returns a String token representing the ID of `isolate`.

Returns null if the running Dart environment does not support the service protocol.

To get the isolate id of the current isolate, pass Isolate.current as the `isolate` parameter.

## Implementation

    @Since('3.2')
    static String? getIsolateId(Isolate isolate) {
      return _getIsolateIdFromSendPort(isolate.controlPort);
    }