withAsset static method

Future<GoogleVision> withAsset(
  1. String assetFileName
)

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);
}