createNetworkSecuredCancelable static method

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

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

Implementation

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