Instead, we are going to use a package that works with the low-level
widgets but is simple to use. It’s called provider.

Before working with provider,
don’t forget to add the dependency on it to your pubspec.yaml.

name

my_name

description

Blah blah blah.

# ...

dependencies

flutter

sdk

flutter

provider

^6.0.0

dev_dependencies

# ...

Now you can import 'package:provider/provider.dart';
and start building.

With provider, you don’t need to worry about callbacks or
InheritedWidgets. But you do need to understand 3 concepts:

ChangeNotifier

ChangeNotifierProvider

Consumer

ChangeNotifier