stopIsolate method
stop for this isolate only. Internal: each isolate runs it.
Implementation
Future<void> stopIsolate() async {
try {
await _stopIsolate();
} finally {
// write the log lines that wait in the buffer, also after an error
LogBuffer.flush();
}
}