# tuple (Dart)

> A tuple data structure for Dart

Source: https://talira.ai/catalog/tuple-dart-241kdtm5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / general purpose](https://talira.ai/categories/libraries/general-purpose)
- Licence: BSD-2-Clause[^2]
- Pricing: Free and open source[^2]
- Free tier: yes[^2]
- Backed by: [Google](https://talira.ai/orgs/google.md)
- Funding: public company (NASDAQ:GOOGL)[^3]

tuple is a Dart package from Google that provides immutable tuple types (Tuple2 up to Tuple7) for bundling several values into one object, with helpers such as withItem1 that return a changed copy. Its maintainers consider it feature complete: since Dart 3, records cover the same uses, so they suggest records for new code and keep the package for bug fixes only. It's BSD-2-Clause licensed and published on pub.dev as tuple.

## Links

- GitHub: https://github.com/google/tuple.dart
- Docs: https://pub.dev/documentation/tuple/latest/

## Problems it solves

- return two values from a function in older Dart code
- keep using Tuple2 in a Dart project that predates records
- bundle a pair of values into one immutable object in Dart

## Features

- immutable tuple types
- copy-with helpers for each item

## Limitations

- Feature complete and only receives bug fixes: its maintainers suggest Dart 3 records for new code[^1]

## Trust

Overall: 0.32 out of 1.
Signals: maintenance 0.27, adoption 0.46, momentum 0.13, community 0.40, backing 0.55, extensibility 0.00.

- latest release v1.0.1 9.5 years ago
- 194 GitHub stars
- 9 contributors
- backed by Google
- funding: public company (NASDAQ:GOOGL)

Warnings:

- last commit 8 months ago

## Sources

[^1]: https://github.com/google/tuple.dart/blob/master/README.md (checked 27 Nov 2026)
[^2]: https://github.com/google/tuple.dart/blob/master/LICENSE (checked 27 Nov 2026)
[^3]: https://www.sec.gov/files/company_tickers_exchange.json (checked 20 Nov 2026)
