Send data to a new screen

Fetch data from the internet

Delete data on the internet

Cookbook

Networking

Delete data on the internet

1. Add the http package

2. Delete data on the server

3. Update the screen

Returning a response from the deleteAlbum() method

Complete example

This recipe covers how to delete data over
the internet using the http package.

This recipe uses the following steps:

Add the http package.

Delete data on the server.

Update the screen.

1. Add the http package

To install the http package,
add it to the dependencies section of the pubspec.yaml file.
You can find the latest version of the
http package on pub.dev.

dependencies

http