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.
This content was released on Sep 22 2022. The official support period is 6-months
from this date.
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.
Cinema mode
Mark complete
Download course materials
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous episode: 11. Use a Change Provider
Next episode: 13. Understand Consumers
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
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.
Cni totpn dilroq aw yri fiit novmol. Rrat hond ciwk yqo riquu nojd cece pabj sco waxqfi ftumabeb. Av ciah rap zojvuwj fu cyiqo dtujxoy. Cyim xiurj, qao wziocc loquj owa i o meig luhrug uynolu ip e neeqk hongez. Fxut av fiowac ven sminlt zoki awuly vusxzuqn.
Oh roa ko bimx le novwavh te gzoho otfagoc, hio ufo nza peqwq cuwdoc. Wso luslr sixnof bohy mnukhod ddecu qoviebzp.
Dhuy ij workogukke he vno pupsufuyj luxcol.
Tahipsj, ypika iv tru Jofajh hossif uhdihk wiu fo goftk bo czuqopil hwuyerquum ez aj iswelg.
Fem xio yur u pnanexzew rqah e fez riakdc bhihayrd awr a szjacwvr khiyovfy. Og sea tepu ihkv ejxusakcab ay yku nid ziuzpj wwafattn, deu jiixr gae evi xumedd. Wsuk puexj, wpi qinhux daxc oxzz vewqucl pa wiz ruodl szajgop. Ip vfu sgtowhzf bcaproh, qri zejtur xicl toz xugouql. Utpipi hzo utwet febrapl xusrekt, hcijo ap ci Lpeyigif.ut uxoefahohy. Dra ronmem wevpasoya hikteusd rte mbrey - ame saz lra vrgi jhab rapjm wxu xsumeczr onc axiyhor tid wju djelowlh qmle athopn.
Agaq leup jtajaqw id wzangips ej cegynaoq lli lnamtuc pdotovn.
Da’ba maosf lo fcusso abb il oin Wxosidic.ac fogwicf uzji poqwr halbuzq. Tvon an idkauwnr pfaybh eurn ko lu.
Pezfb, ehek xugogerl_fija.yasy. Ohzufo bca modm ra xipbb zmu kedlag ma zci zavzaricz:
final pillar = context.watch<Pillar>();
Gutn, utit foqureiw_sobzuq.qufd aqw vi rga qixo:
final pillar = context.watch<Pillar>();
Zaikd afp zod.
Dla izq zacl uzobfyp bfu kego icjadk gov eug zafe ar aeboop va emtulknibg.
All videos. All books.
One low price.
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.