1
0
mirror of https://github.com/dart-lang/sdk synced 2024-07-03 00:08:46 +00:00

Add @Since annotation, correct changelog entry position.

CoreLibraryReviewExempt: Trivial change.
Change-Id: I5c23641ed562efe51c0c7c35517ba75fffdd05ad
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/372503
Reviewed-by: Kevin Moore <kevmoo@google.com>
Commit-Queue: Lasse Nielsen <lrn@google.com>
This commit is contained in:
Lasse R.H. Nielsen 2024-06-20 15:35:56 +00:00 committed by Commit Queue
parent 9a2d6f12b6
commit 705c745e19
2 changed files with 6 additions and 5 deletions

View File

@ -34,11 +34,6 @@
(`add`, `subtract`, `difference`) where the `Duration` argument or result
exceeds 570 years.
- Added superinterface `TypedDataList` to typed data lists, implementing both
`List` and `TypedData`. Allows abstracting over all such lists without losing
access to either the `List` or the `TypedData` members.
A `ByteData` is still only a `TypedData`, not a list.
[#44876]: https://github.com/dart-lang/sdk/issues/44876
#### `dart:typed_data`
@ -49,6 +44,11 @@
To create an unmodifiable view of a typed-data object, use the
`asUnmodifiableView()` methods added in Dart 3.3.
- Added superinterface `TypedDataList` to typed data lists, implementing both
`List` and `TypedData`. Allows abstracting over all such lists without losing
access to either the `List` or the `TypedData` members.
A `ByteData` is still only a `TypedData`, not a list.
[#53785]: https://github.com/dart-lang/sdk/issues/53785
### Tools

View File

@ -359,6 +359,7 @@ abstract final class TypedData {
}
/// A [TypedData] fixed-length [List]-view on the bytes of [buffer].
@Since("3.5")
abstract final class TypedDataList<E> implements TypedData, List<E> {}
abstract final class _TypedIntList implements TypedDataList<int> {