send static method

Future<({int code, String data, bool success})> send(
  1. String url
)

Implementation

static Future<({bool success, int code, String data})> send(String url) {
  if(isPost) {
    var tokens = url.split('?');
    return post(tokens[0], tokens.length >= 2 ? tokens[1] : '');
  }

  return get(url);
}