Skip to content

Commit

Permalink
Ignore the UnmodifiableUint8ListView deprecation warning (#915)
Browse files Browse the repository at this point in the history
We can't fix it until the minimum supported SDK version has the
replacement. Ignore the warning for now.
  • Loading branch information
osa1 authored Mar 1, 2024
1 parent ef0ab7d commit c283db5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions protobuf/test/coded_buffer_reader_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ void main() {
});

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

Expand Down

0 comments on commit c283db5

Please sign in to comment.