ClientBrowser constructor

ClientBrowser({
  1. String endPoint = 'https://api.tomba.io/v1',
  2. bool selfSigned = false,
})

Implementation

ClientBrowser({
  String endPoint = 'https://api.tomba.io/v1',
  bool selfSigned = false,
}) : _endPoint = endPoint {
  _httpClient = BrowserClient();
  _headers = {
    'content-type': 'application/json',
    'x-sdk-version': 'tomba:dart:v1.0.1',
  };

  this.config = {};

  assert(_endPoint.startsWith(RegExp("http://|https://")),
      "endPoint $_endPoint must start with 'http'");
}