title: Dart: Object is giving output only once even when called multiple times
body: <p>Hi I am trying to print value of 'a' property of x object but I only get output once.</p>
  <pre><code>void main() {
    var x = Test(&quot;Boy&quot;);
    x;
    x;
    x;
    x;
    x;
    x;
  }
  
  class Test {
    Test(var b) {
      this.a = b;
      print(a);
    }
    var a;
  }
  </code></pre>
  <p>Output:</p>
  <pre><code>Boy
  </code></pre>