Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use record in pairwise() #753

Open
Albert221 opened this issue Apr 8, 2024 · 1 comment
Open

Use record in pairwise() #753

Albert221 opened this issue Apr 8, 2024 · 1 comment

Comments

@Albert221
Copy link

Albert221 commented Apr 8, 2024

Hello!

We have records in Dart now. Let's use them as the pairwise() event type ((T, T) or ({T previous, T current})) instead of the current List<T>. The advantage of this would be that it would always have two values, not a list that could be accessed on an invalid index.

It would be a breaking change though.

@hoc081098
Copy link
Collaborator

many Streams and operators (combineLatest, zip, ...)can use record types.
I think we should create another pub lib that supports dart 3.0 instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants