shutdownSimulator method

  1. @override
Future<bool> shutdownSimulator({
  1. required String deviceId,
})
override

Implementation

@override
Future<bool> shutdownSimulator({required String deviceId}) async {
  try {
    final result = await _exec.run(
      adbPath,
      arguments: ['-s', deviceId, 'emu', 'kill'],
    );
    return result.success;
  } catch (e) {
    return false;
  }
}