ApiService constructor

ApiService(
  1. Environment env,
  2. Endpoint endpoint
)

Implementation

ApiService(Environment env, Endpoint endpoint) {
  var baseOptions = BaseOptions(baseUrl: endpoint.getBackend());
  this._api = Dio(baseOptions);
}