The Provider Library Fundamentals

Learn what a provider library is and how you can use the "Provider.of<T>" method.

What is the Provider package

What is the Provider in Flutter? The Provider is a Flutter package. It’s a wrapper around the InheritedWidget.

Before we proceed, we must add the dependency on the provider to the pubspec.yaml file.

It looks like this:

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy