withGenerator static method

Future<GoogleVision> withGenerator(
  1. TokenGenerator generator
)

Authenticate using the supplied token generator

Implementation

static Future<GoogleVision> withGenerator(TokenGenerator generator) async {
  final yt = GoogleVision();

  GoogleVision.tokenGenerator = generator;

  await _confirmToken();

  return yt;
}