setup static method

dynamic setup({
  1. String? host,
  2. String? prefix,
})

define host and prefix so that on every request only specify endpoint

Implementation

static setup({String? host, String? prefix}) {
  _host = host;
  _prefix = prefix;
}