title: What is the difference between didChangeDependencies and initState?
body: <p>I am new to flutter and when I want to call my context in InitState it throws an error :
  which is about
  <code>BuildContext.inheritFromWidgetOfExactType</code>
  but then I use didChangeDependencies and it works correctly.</p>
  <p>Now I have 2 question:</p>
  <p>1- Why calling our context in initState does not work but it works when calling from 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 do we have access to our context outside of 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 can we call context to use it) ?</p>