system_tasks_dart 0.2.0 system_tasks_dart: ^0.2.0 copied to clipboard
Get a list of system processes, and you can kill, start, restart a process
example/system_tasks_dart_example.dart
import 'package:system_tasks_dart/system_tasks_dart.dart';
void main() {
SystemTasks.tasks().then((ps) {
var p = ps.firstWhere((p) => p.pname.toLowerCase() == 'code.exe');
if (p != null) {
p.reStartLikes();
}
});
}