Skip to content

Commit c283db5

Browse files
authored
Ignore the UnmodifiableUint8ListView deprecation warning (#915)
We can't fix it until the minimum supported SDK version has the replacement. Ignore the warning for now.
1 parent ef0ab7d commit c283db5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

protobuf/test/coded_buffer_reader_test.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ void main() {
8484
});
8585

8686
test('unmodifiable-uint8-list-view', () {
87+
// TODO: Use `Uint8List.asUnmodifiableView` instead of
88+
// `UnmodifiableUint8ListView` when it's available in the oldest
89+
// supported SDK version.
90+
// ignore: deprecated_member_use
8791
testWithList(UnmodifiableUint8ListView(Uint8List.fromList(inputBuffer)));
8892
});
8993

0 commit comments

Comments
 (0)