mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-30 00:36:28 +00:00
20 lines
361 B
Dart
20 lines
361 B
Dart
|
import 'dart:collection';
|
||
|
|
||
|
/// Abstract list
|
||
|
///
|
||
|
/// @author Pierre HUBERT
|
||
|
|
||
|
class AbstractList<E> extends ListBase<E> {
|
||
|
final _list = List<E>();
|
||
|
|
||
|
int get length => _list.length;
|
||
|
|
||
|
set length(int l) => _list.length = l;
|
||
|
|
||
|
@override
|
||
|
E operator [](int index) => _list[index];
|
||
|
|
||
|
@override
|
||
|
void operator []=(int index, E value) => _list[index] = value;
|
||
|
}
|