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