title: inheritFromWidgetOfExactType is deprecated use dependOnInheritedWidgetOfExactType instead
body: <p>Since the release of Flutter 1.12 my following code:</p>
  
  <pre class="lang-dart prettyprint-override"><code>static MyInheritedWidget of(BuildContext context) {
    return context.inheritFromWidgetOfExactType(MyInheritedWidget) as MyInheritedWidget;
  }
  </code></pre>
  
  <p>warns with the following:</p>
  
  <blockquote>
    <p>'inheritFromWidgetOfExactType' is deprecated and shouldn't be used. Use dependOnInheritedWidgetOfExactType instead. This feature was deprecated after v1.12.1..
    Try replacing the use of the deprecated member with the replacement.</p>
  </blockquote>
  
  <p>But when I try to replace it, it does not work:</p>
  
  <pre class="lang-dart prettyprint-override"><code>static MyInheritedWidget of(BuildContext context) {
    return context.dependOnInheritedWidgetOfExactType(MyInheritedWidget) as MyInheritedWidget;
  }
  </code></pre>
  
  <p>Does someone know how to do it? Thanks!</p>