clientViaAppKey function

Client clientViaAppKey(
  1. String appKey, {
  2. Client? inner,
})

Obtains an HTTP Client which uses an appKey.

Note that the returned client should only be used for making HTTP requests to the TfL API. The parameters should not be disclosed to third parties.

The user is responsible for closing the returned HTTP Client. Closing the returned HTTP Client will also close the inner client.

Implementation

Client clientViaAppKey(String appKey, {Client? inner}) {
  return AppKeyClient(
    appKey: appKey,
    inner: inner,
  );
}