getProcessInfo method

Future<List<ProcessInfo>> getProcessInfo()

Returns information about all running processes. Returns: An array of process info blocks.

Implementation

Future<List<ProcessInfo>> getProcessInfo() async {
  var result = await _client.send('SystemInfo.getProcessInfo');
  return (result['processInfo'] as List)
      .map((e) => ProcessInfo.fromJson(e as Map<String, dynamic>))
      .toList();
}