Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 5f88ee4

Browse files
authored
Use IndexError.check instead of RangeError.checkValidIndex in buffers. (#37450)
1 parent eeba9b3 commit 5f88ee4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web_ui/lib/src/engine/services/buffers.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ abstract class _TypedDataBuffer<E> extends ListBase<E> {
108108
/// or equal to [start] and [values] must have at least [end] elements.
109109
@override
110110
void insertAll(int index, Iterable<E> values, [int start = 0, int? end]) {
111-
RangeError.checkValidIndex(index, this, 'index', _length + 1);
111+
IndexError.check(index, _length + 1, indexable: this, name: 'index');
112112
RangeError.checkNotNegative(start, 'start');
113113
if (end != null) {
114114
if (start > end) {

0 commit comments

Comments
 (0)