createCancelable static method

Future<CancelableOperation<TokenCredential>> createCancelable(
  1. {required Uri uri,
  2. required String username,
  3. required String password,
  4. int tokenExpirationInterval = 0}
)

Cancelable version of create. See that method for more information.

Implementation

static Future<CancelableOperation<TokenCredential>> createCancelable(
    {required Uri uri,
    required String username,
    required String password,
    int tokenExpirationInterval = 0}) async {
  await _packageInfoCompleter.future;
  return _createCancelable(
      uri: uri,
      username: username,
      password: password,
      tokenExpirationInterval: tokenExpirationInterval);
}