fromWindows static method

ActiveWindowInfo fromWindows(
  1. dynamic rawResult
)

Implementation

static ActiveWindowInfo fromWindows(dynamic rawResult) {
  final result = _WindowsResult.fromJson(json.encode(rawResult));
  return ActiveWindowInfo(
    title: result.title ?? 'ERROR',
    bundleId: result.exe,
    appName: result.name,
    userName: Platform.environment['USERNAME'],
  );
}