currentThreadIsolate property
Returns the Isolate object representing the currently executing isolate.
Equivalent to Java's Thread.currentThread().
Example:
final current = Thread.currentThreadIsolate;
Implementation
static Isolate get currentThreadIsolate => Isolate.current;