What is diffrence between didChangeDependencies and initState? : <p>I am new to flutter and when I want to call my context in InitState it throw an error :
which is about 
<code>BuildContext.inheritFromWidgetOfExactType</code>
but then I use didChangeDependencies and it work correctly.</p>

<p>now I have 2 question:</p>

<p>1-why we can't call our context in initState but there is no problem for didChangeDependencies ?
(because as I read in official doc <code>This method is also called immediately after [initState]</code>,
and both of them will be called before build method. )</p>

<p>2-why we have access to context outside build method ( because there we have <code>build(BuildContext context)</code> and we can use our context but in didChangeDependencies we don't have anything like <code>didChangeDependencies(BuildContext context)</code> , so from where we can call context to use it) ?</p>
