SocketLabsClient constructor
SocketLabsClient({})
Creates the client. You should only create this once and reuse it for subsequent sends.
Implementation
SocketLabsClient({
required this.serverId,
required this.apiKey,
String apiUrl = 'https://inject.socketlabs.com/api/v1',
http.Client? httpClient,
}) : httpClient = httpClient ?? http.Client(),
apiUrl = Uri.parse(apiUrl);