PassKitWebClient constructor

PassKitWebClient({
  1. Client? client,
})

If a client is passed to the constructor it will be used, otherwise a default instance will be created. This is useful for testing, or for using other implementations like https://pub.dev/packages/cupertino_http or https://pub.dev/packages/cronet_http.

Implementation

PassKitWebClient({Client? client}) : _client = client ?? Client();