withAsset static method
Create a new instance of GoogleVision
with the given assetFileName
.
Implementation
static Future<gv.GoogleVision> withAsset(String assetFileName) async {
final credentials = await rootBundle.loadString(assetFileName);
return gv.GoogleVision.withJwt(credentials);
}