Get a list of system processes, and you can kill, start, restart a process

Inspired by system-task

Install

dependencies:
  system_tasks_dart:

Usage

A simple usage example:

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.reStartLinks();
    }
  });
}

test

pub run test ./test/system_tasks_dart_test.dart

Libraries

system_tasks_dart