title: How do I add Methods or Values to Enums in Dart?
body: <p>In Java when you are defining an enum, you can do something similar to the following, i.e. add members to an <code>enum</code>. Is this possible in Dart?</p>
  <pre class="lang-dart prettyprint-override"><code>enum Foo {
    one(1), two(2);
    final num value;
    Foo(this.value);
  }
  </code></pre>