mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Start Flutter update
This commit is contained in:
@ -5,7 +5,7 @@ import 'dart:collection';
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class AbstractList<E> extends ListBase<E> {
|
||||
final _list = List<E>();
|
||||
final _list = <E>[];
|
||||
|
||||
int get length => _list.length;
|
||||
|
||||
|
@ -9,7 +9,7 @@ import 'package:comunic/models/comment.dart';
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class CommentsList extends ListBase<Comment> {
|
||||
List<Comment> _list = List();
|
||||
List<Comment> _list = [];
|
||||
|
||||
int get length => _list.length;
|
||||
|
||||
|
@ -7,7 +7,7 @@ import 'package:comunic/models/conversation_message.dart';
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class ConversationMessagesList extends ListBase<ConversationMessage> {
|
||||
final List<ConversationMessage> _list = List();
|
||||
final List<ConversationMessage> _list = [];
|
||||
|
||||
set length(int v) => _list.length = v;
|
||||
|
||||
|
@ -8,7 +8,7 @@ import 'package:comunic/models/conversation.dart';
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class ConversationsList extends ListBase<Conversation> {
|
||||
final List<Conversation> _list = List();
|
||||
final List<Conversation> _list = [];
|
||||
UsersList users;
|
||||
|
||||
set length(l) => _list.length = l;
|
||||
|
@ -7,7 +7,7 @@ import 'package:comunic/models/friend.dart';
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class FriendsList extends ListBase<Friend> {
|
||||
List<Friend> _list = List();
|
||||
List<Friend> _list = [];
|
||||
|
||||
int get length => _list.length;
|
||||
|
||||
|
@ -9,7 +9,7 @@ import 'package:comunic/models/post.dart';
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class PostsList extends ListBase<Post> {
|
||||
List<Post> _list = List();
|
||||
List<Post> _list = [];
|
||||
|
||||
int get length => _list.length;
|
||||
|
||||
|
@ -7,7 +7,7 @@ import 'package:comunic/models/user.dart';
|
||||
/// @author Pierre HUBERT
|
||||
|
||||
class UsersList extends ListBase<User> {
|
||||
List<User> _list = List();
|
||||
List<User> _list = [];
|
||||
|
||||
int get length => _list.length;
|
||||
|
||||
|
Reference in New Issue
Block a user