Get immediate access to this and over 1,500+ other videos and books.

Boost your skills with a Beginner subscription. With over 60+ video courses and our core foundational programming books bundled in one subscription, it’s simply the best investment you can make in your development career.

Use Context Methods

This video was last updated on Sep 22 2022

Provider includes a bunch of extension methods that make it easier to observe state changes as well as how to view individual properties. Learn how to use these context methods.


Heads up... You've reached locked video content where the transcript will be shown as obfuscated text.

You can unlock the rest of this video course, and our entire catalogue of books and videos, with a Professional subscription.

So far, we’ve getting our model objects by calling the Provider.of method. This gives us access to our model object, but Provider has actually made getting our objects far easier. By using extension methods, we don’t need to call Provider.of, we can use extension methods defined on the context. There are three methods available to us.

final pillar =<Pillar>();
final pillar =<Pillar>();