title: Private Setters in Dart
body: <p>I have been looking but couldn't find any reference to this. I would like to create a private setter in Dart to call an additional function after I have changed a private variable.</p>
  
  <pre><code>ViewState _state;
  
  ViewState get state =&gt; _state;
  
  set _state(value) {
    _state = value;
    notifyListeners();
  }
  </code></pre>
  
  <p>How Can I achieve this?</p>