title: Override getter functionality in Dart?
body: <p>I want to declare a field in dart, and only override the functionality of the getter, but I'm not sure how / if that is possible.</p>
  
  <pre class="lang-dart prettyprint-override"><code>class Pony {
    String ponyGreeting;
    String ponyName;
    Pony(this.ponyGreeting, this.ponyName);
  
    String get ponyGreeting =&gt; "$ponyGreeting I'm $ponyName!";
  }
  </code></pre>
  
  <p>That causes an error, though, because I've already defined "ponyGreeting". I can't just get rid of the field ponyGreeting, because I want to set it using the constructor, and if I made a setter I would have to set that value somewhere, and I don't really want a superfluous property.</p>