title: Why Static field can't be accessed through an instance
body: <p>Why Static field can't be accessed through an instance.
  Dart 2.4 Flutter 1.7 Android Studio 3.4</p>
  
  <p>When I was trying to port codes from JAVA to Flutter(Dart), I got the compile error</p>
  
  <p>I had defined the variable in MyMainBloc as follows</p>
  
  <pre><code>static LoginStatus loginStatus = null;
  </code></pre>
  
  <p>Then I create an instance:</p>
  
  <pre><code>MyMainBloc myApp;
  </code></pre>
  
  <p>I expect to use something like this: myApp.loginStatus, NOT MyMainBloc.loginStatus.</p>