OData constructor

OData(
  1. String _baseUrl, {
  2. bool useHttp = false,
})

Implementation

OData(String _baseUrl, {this.useHttp = false}) {
  if (_baseUrl.contains(r"://")) {
    throw Exception("Please omit the protocol");
  } else {
    baseUrl = _baseUrl;
  }
}