stop method
Implementation
@override
Future<String> stop() async {
_process.kill(ProcessSignal.sigint);
try {
await _process.exitCode.timeout(const Duration(seconds: 10));
} on TimeoutException {
_process.kill(ProcessSignal.sigkill);
}
if (!File(path).existsSync()) {
throw BackendToolError(
backend: _label,
command: 'simctl io recordVideo (stop)',
exitCode: -1,
stderr: 'no video file written to $path',
);
}
return path;
}