withGenerator static method
Authenticate using the supplied token generator
Implementation
static Future<GoogleVision> withGenerator(TokenGenerator generator) async {
final yt = GoogleVision();
GoogleVision.tokenGenerator = generator;
await _confirmToken();
return yt;
}