createWithChallengeCancelable static method

Future<CancelableOperation<TokenCredential>> createWithChallengeCancelable(
  1. ArcGISAuthenticationChallenge challenge,
  2. {required String username,
  3. required String password,
  4. int tokenExpirationInterval = 0}
)

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

Implementation

static Future<CancelableOperation<TokenCredential>>
    createWithChallengeCancelable(ArcGISAuthenticationChallenge challenge,
        {required String username,
        required String password,
        int tokenExpirationInterval = 0}) async {
  await _packageInfoCompleter.future;
  return _createWithChallengeCancelable(challenge,
      username: username,
      password: password,
      tokenExpirationInterval: tokenExpirationInterval);
}