Flutter Provider Simply Explained
YouTube transcript, YouTube translate
A quick preview of the first subtitles so you know what the video covers.
thank you for clicking on this video and today what i'm going to share with you is not a square but the package provider on the meaning of provider this video is just to explain to you as simple as possible what is provider and how to use it and also a little bonus that i'm going to share at the end of this video so what is provider really what it is provider in my own definition provider is like fishing fishing yes fishing so here we have a simple provider statement that you get a user object however do you know what this whole statement is all about well how about these images can you figure out which images represent which part of the provider statement if you have guessed it the fish is the final variable that reference from the user provider the fisherman is the or the provider dot of user and lastly the context refers to a river so how is all of this connected to each other well imagine you're a fisherman in the middle of the river and the river here represents the context and in the context or river there is different types of fishes or data there is theme data there is user data and there is a boolean is online data however you want to specifically find a user data therefore you need to catch the user data by having to use this static method provider dot of t so what does this t represent so the t stands for type since you are looking for a user data the type will be a user and once you have the provider method connected to the context