title: The instance member 'widget' can't be accessed in an initializer
body: <p>In my project, I pass data from one widget to another using this code:</p>
  <pre><code>Navigator.push(
            context,
            MaterialPageRoute(
              builder: (context) =&gt;
                  TranslatorSignUpStep2(transModel: this._translatorModel),
            ),
          );
  </code></pre>
  <p>Then I retrive it in the other widget by the code below:</p>
  <pre><code>class TranslatorSignUpStep2 extends StatefulWidget {
    final TranslatorModel transModel;
    TranslatorSignUpStep2({this.transModel});
  
    @override
    _TranslatorSignUpStep2State createState() =&gt; _TranslatorSignUpStep2State();
  }
  </code></pre>
  <p>The problem is, in the TranslatorSignUpStep2 class I want to assign the passed-in <code>transModel</code> to another variable so I write this code</p>
  <pre><code>class _TranslatorSignUpStep2State extends State&lt;TranslatorSignUpStep2&gt; {
    TranslatorModel _translatorModel = widget.transModel;
  }
  </code></pre>
  <p>But it seems like the <code>widget</code> can't be used outside the build method so I get error saying
  <code>The instance member 'widget' can't be accessed in an initializer.</code>. Anyone know how to get over this ?</p>