checkFunctionExecuted function
Implementation
bool checkFunctionExecuted(
WidgetRef ref,
List checkCommands,
List checkImages,
) {
String stdout = ref.watch(stdoutProvider);
for (String item in checkCommands) {
if (!stdout.contains(item)) {
return false;
}
}
for (String imagePath in checkImages) {
String image = '$tempDir/$imagePath';
if (!imageExists(image)) {
return false;
}
}
return true;
}