diff --git a/runtime/observatory/tests/ui/inspector.dart b/runtime/observatory/tests/ui/inspector.dart index 17f9156c2bc..1322d65ee5d 100644 --- a/runtime/observatory/tests/ui/inspector.dart +++ b/runtime/observatory/tests/ui/inspector.dart @@ -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);