httpservice 0.0.1 copy "httpservice: ^0.0.1" to clipboard
httpservice: ^0.0.1 copied to clipboard

outdated

A project that contains helper classes to help with http package.(only get is supported for now)

httpservice #

A FLutter package that depends on http package (For now only get command is supported).

Getting Started #

This package contains classes that make it easy to consume the http package. It's multi-platform, and supports mobile, desktop, and the browser.

Using #

The easiest way to use this library is to initialize the class and call the function:

import 'dart:convert';
import 'package:httpservice/httpservice.dart';

void getapidata(String apix) async {
    HttpService httpService = HttpService("$apix");
    var data = await httpService.getContents();
    var decodedData = jsonDecode(data);
    print(decodedData);
  }

2
likes
0
pub points
48%
popularity

Publisher

unverified uploader

A project that contains helper classes to help with http package.(only get is supported for now)

Homepage

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on httpservice