isAndroidProjectPresent property
bool
get
isAndroidProjectPresent
Returns true if the android/ directory exists in the project.
Use this to check if Android support is present before attempting any Android-specific operations.
Example
final manager = AndroidManager('/path/to/project');
if (!manager.isAndroidProjectPresent) {
print('Run "flutter create ." to add Android support');
}
Implementation
bool get isAndroidProjectPresent {
return Directory(p.join(projectRoot, 'android')).existsSync();
}