/network_caller

Network caller for the api based application with the help of http package

Primary LanguageDartOtherNOASSERTION

Network caller for the api based application with the help of http package

Features

  • get request
  • post request
  • multipart file support & conversion
  • logger

Getting started

Add these line into pubspec.yaml file as dependency and run flutter pub get

 network_caller:
    git:
      url: https://github.com/RafatMeraz/network_caller
      ref: version

Usage

final response = await BaseNetworkCaller.getRequest(
    'url', 
    token: 'your_token_here_if_necessary', 
    onUnAuthorized: () {
      // your desired action you want to do
    }
);

Additional information

TODO: Tell users more about the package: where to find more information, how to contribute to the package, how to file issues, what response they can expect from the package authors, and more.