1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 04:49:21 +00:00
comunicmobile/lib/lists/abstract_list.dart

23 lines
415 B
Dart
Raw Permalink Normal View History

import 'dart:collection';
/// Abstract list
///
/// @author Pierre HUBERT
class AbstractList<E> extends ListBase<E> {
2021-03-13 14:14:54 +00:00
final _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;
@override
void add(E element) => _list.add(element);
}