useHttp2 property

bool useHttp2
final

Use HTTP2 sockets for interacting with API.

This is the recommended way, but it may not work on certain platforms like web.

If false, then the http package is used.

Implementation

final bool useHttp2;