isGitInstalled static method
Checks if GIT is installed on current system and the command is available.
Implementation
static Future<bool> isGitInstalled() async {
try {
final result = await which('git');
if (result == null) {
_isGitInstalled = false;
} else {
_isGitInstalled = true;
}
} catch (e) {
_isGitInstalled = false;
}
return _isGitInstalled;
}