isolateIndex method
Return a unique, monotonically increasing number for this Isolate.
Implementation
int? isolateIndex(IsolateRef isolateRef) {
if (!_isolateIndexMap.containsKey(isolateRef.id)) {
_isolateIndexMap[isolateRef.id] = ++_lastIsolateIndex;
}
return _isolateIndexMap[isolateRef.id];
}