Use `=` to separate a named parameter from its default value (#8)

1 file changed
tree: 4f8c150ec795902c852afabacf242c581ca7bf7b
  1. lib/
  2. test/
  3. .gitignore
  4. .travis.yml
  5. AUTHORS
  6. CHANGELOG.md
  7. LICENSE
  8. pubspec.yaml
  9. README.google
  10. README.md
README.md

Build Status

Usage example

const t = const Tuple2<String, int>('a', 10);

print(t.item1); // prints 'a'
print(t.item2); // prints '10'
final t1 = const Tuple2<String, int>('a', 10);
final t2 = t1.withItem1('c');
// t2 is a new [Tuple2] object with item1 is 'c' and item2 is 10.