| Index: packages/utf/lib/src/list_range.dart
|
| diff --git a/packages/utf/lib/src/list_range.dart b/packages/utf/lib/src/list_range.dart
|
| index 2f3b34d6deb1df134810ee9bd6f5cb34b90b6311..159512df3edd6d34c7708d4575f5b84fd7933a66 100644
|
| --- a/packages/utf/lib/src/list_range.dart
|
| +++ b/packages/utf/lib/src/list_range.dart
|
| @@ -13,15 +13,15 @@ import 'dart:collection';
|
| */
|
| // TODO(floitsch): Consider removing the extend and switch to implements since
|
| // that's cheaper to allocate.
|
| -class ListRange extends IterableBase {
|
| - final List _source;
|
| +class ListRange extends IterableBase<int> {
|
| + final List<int> _source;
|
| final int _offset;
|
| final int _length;
|
|
|
| - ListRange(source, [offset = 0, length]) :
|
| - this._source = source,
|
| - this._offset = offset,
|
| - this._length = (length == null ? source.length - offset : length) {
|
| + ListRange(List<int> source, [offset = 0, length])
|
| + : this._source = source,
|
| + this._offset = offset,
|
| + this._length = (length == null ? source.length - offset : length) {
|
| if (_offset < 0 || _offset > _source.length) {
|
| throw new RangeError.value(_offset);
|
| }
|
|
|