1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2025-06-19 00:05:16 +00:00

Ready to implement the list of notifications

This commit is contained in:
2019-11-01 14:55:28 +01:00
parent 481d718338
commit 61124c34ef
7 changed files with 230 additions and 0 deletions

View File

@ -0,0 +1,19 @@
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;
}

View File

@ -0,0 +1,8 @@
import 'package:comunic/lists/abstract_list.dart';
import 'package:comunic/models/notification.dart';
/// Notifications list
///
/// @author Pierre HUBERT
class NotificationsList extends AbstractList<Notification> {}