ServiceNowInstance.withCustomUrl constructor

ServiceNowInstance.withCustomUrl({
  1. required String url,
})

Implementation

ServiceNowInstance.withCustomUrl({required this.url}) : name = ""{
  if (!url.startsWith('https://')) {
    throw ArgumentError.value(url, 'url', 'URL must start with https://');
  }
  if(Uri.parse(url).isAbsolute == false) {
    throw ArgumentError.value(url, 'url', 'URL is not valid');
  }
}