[observatory] Avoid deprecated UnmodifiableUint8ListView

TEST=ci
Issue: 53785
Change-Id: I1e3696b32b165813f895dfafb9da8fd50bb41ffc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332263
Reviewed-by: Ben Konyi <bkonyi@google.com>
Commit-Queue: Stephen Adams <sra@google.com>
This commit is contained in:
Stephen Adams 2023-10-26 01:31:29 +00:00 committed by Commit Queue
parent e557275397
commit 8ab032574a

View file

@ -216,7 +216,7 @@ class Node {
extractPrivateField(reflectClass(A).typeVariables.single, '_reflectee');
typedDataArray = Uint8List(32);
typedDataView = Uint8List.view(typedDataArray.buffer, 16);
typedDataUnmodifiableView = UnmodifiableUint8ListView(typedDataArray);
typedDataUnmodifiableView = typedDataArray.asUnmodifiableView();
userTag = new UserTag("Example tag name");
weakProperty =
extractPrivateField(expando, '_data').firstWhere((e) => e != null);