writeExecutable function Null safety

Future<String> writeExecutable(
  1. String mediaPath,
  2. String outputPath,
  3. {bool folowMime = false}
)

Implementation

Future<String> writeExecutable(String mediaPath, String outputPath,
    {bool folowMime = false}) async {
  // ignore: omit_local_variable_types
  List<String> args = [mediaPath, outputPath];
  if (folowMime) {
    args.add('--folow-mime');
  }
  var result;
  try {
    result = await Process.run('artwork_extractor', args);
  } catch (_) {
    result = await Process.run('artwork_extractor-bin', args);
  }
  return result.stdout;
}