fromFile static method
loads given properties from given file and returns a future that can be awaited.
Implementation
static Future<GradleProperties?> fromFile(File file) async {
try {
final String content = await file.readAsString();
final parsed = _parse(content);
return GradleProperties._(parsed, file);
} catch (error, stacktrace) {
print(error);
print(stacktrace);
return null;
}
}