screenshot method

Future screenshot(
  1. String file, {
  2. String? option,
})

takes a screenshot @param option ->
subtitles - with subtitles
video - without subtitles
window - the scaled mpv window

Implementation

Future screenshot(String file, {String? option}) {
  var args = [
    path.joinAll([path.current, file])
  ];
  if (option != null) {
    args = [...args, option];
  }
  return command('screenshot-to-file', args);
}