Support Dart 2, prepare to release 1.0.2 (#4)

Closes https://github.com/kseo/tuple/pull/3
9 files changed
tree: d78e67697aa5aa206a5e79c339562e20556a03a1
  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.