Viewing version 2.0.0-nullsafety.0. Open the latest package page.
tuple
2.0.0-nullsafety.0Tuple data structure
Readme
Usage example
const t = Tuple2<String, int>('a', 10);
print(t.item1); // prints 'a'
print(t.item2); // prints '10'
const t1 = Tuple2<String, int>('a', 10);
final t2 = t1.withItem1('c');
// t2 is a new [Tuple2] object with item1 is 'c' and item2 is 10.
Changelog
2.0.0-nullsafety.0
- Upgrade to sound null safety
- Require Dart 2.12.0-0
1.0.3
- Require Dart 2.0.0.
- Fixed Tuple7's operator==.
1.0.2
- Prepare for Dart 2 stable.
1.0.1
- Fix all strong-mode warnings and errors.
1.0.0
- Remove _hash function and use quiver_hashcode package instead.
0.4.0
- Add fromList factory constructor.
- Add Tuple6 and Tuple7 classes.
0.3.0
- Add toList method.
0.2.0
- Rename PersistentTuple classes to Tuple; remove Tuple classes.
- Rename each iN item to itemN.
- Rename setIN to withItemN.
0.1.2
- Fix a bug in == operator of PersistentTuple classes.
0.1.1
- Add operator == and hashCode to classes, so that tuples may be used as keys in hashes.
0.1.0
- Initial release.
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.ir
flutter pub add 'tuple:2.0.0-nullsafety.0'pubspec.yaml
name: tuple
version: 2.0.0-nullsafety.0
description: Tuple data structure
repository: https://github.com/google/tuple.dart
environment:
sdk: '>=2.12.0-0 <3.0.0'
dependencies:
quiver: ^3.0.0-nullsafety
dev_dependencies:
pedantic: ^1.10.0-nullsafety
test: ^1.16.0-nullsafety
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.1.0 | Cached · Upstream SHA-256 matched | Download | a6b04e62…64b3e4 |
| 0.1.1 | Cached · Upstream SHA-256 matched | Download | b0f98853…a07ef2 |
| 0.1.2 | Cached · Upstream SHA-256 matched | Download | 9f07f669…72ce75 |
| 0.2.0 | Cached · Upstream SHA-256 matched | Download | 46b86eec…62be3e |
| 0.3.0 | Cached · Upstream SHA-256 matched | Download | 11584629…080ad2 |
| 0.4.0 | Cached · Upstream SHA-256 matched | Download | f2b00194…3a3e84 |
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 5138b7cf…f0ea30 |
| 1.0.1 | Cached · Upstream SHA-256 matched | Download | a78a7d05…463509 |
| 1.0.2 | Cached · Upstream SHA-256 matched | Download | be2c4046…e17017 |
| 1.0.3 | Cached · Upstream SHA-256 matched | Download | 2b6a02e9…58b450 |
| 2.0.0-nullsafety.0 | Cached · Upstream SHA-256 matched | Download | e5994eb2…99faf1 |
| 2.0.0 | Cached · Upstream SHA-256 matched | Download | fe3ae4f0…3b0dd3 |
| 2.0.1 | Cached · Upstream SHA-256 matched | Download | 0ea99cd2…60f0aa |
| 2.0.2 | Cached · Upstream SHA-256 matched | Download | a97ce201…7dd151 |
Dependencies
quiver "^3.0.0-nullsafety"