I need to get id of the current thread in Dart. Something similar to how I would do this in Java (or C#):
Thread.currentThread().getId()
I need to get id of the current thread in Dart. Something similar to how I would do this in Java (or C#):
Thread.currentThread().getId()
Coming in a bit late but I think Isolate.current.debugName
should give you what you're looking for.
Are you talking about the Process ID of the running program? Because that is possible with the pid property from dart:io: