title: How to use this in a dart constructor with private variables
body: <p>When I try to create a constructor in dart like <code>Student(this._name)</code> it doesn't work with private variables.</p>
  
  <p>I have already tried using setters but it doesn't work either.</p>
  
  <pre><code>    class Student{
  
      var _id;
      var _name;
  
      Student(this.id, this.name);
  
      void set id(int id) =&gt; _id = id;
      void set name(String name) =&gt; _name = name;
  
      }
  </code></pre>