kill method
Forcibly terminates the process and releases resources.
Implementation
@override
Future<void> kill() async {
if (!isInvalidHandle(_child)) {
try {
_k.terminateProcess(_child, 1);
} catch (_) {
// Already gone.
}
}
_dispose();
}