WooCommerceAPI constructor

WooCommerceAPI({
  1. required String url,
  2. required String consumerKey,
  3. required String consumerSecret,
})

Implementation

WooCommerceAPI({
  required this.url,
  required this.consumerKey,
  required this.consumerSecret,
}) {
  this.url = url;
  this.consumerKey = consumerKey;
  this.consumerSecret = consumerSecret;

  if (this.url.startsWith("https")) {
    this.isHttps = true;
  } else {
    this.isHttps = false;
  }
}