Convert the response into a custom Dart object.

Get the data from the internet.

Update the existing title from user input.

Update and display the response on 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

<latest_version>

Import the http package.

2. Updating data over the internet using the http package

This recipe covers how to update an album title to the
JSONPlaceholder using the http.put() method.

The http.put() method returns a Future that contains a Response.

Future is a core Dart class for working with
async operations. A Future object represents a potential
value or error that will be available at some time in the future.