Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
|
- import 'package:chat/utils/conversation_table.dart';
- import 'package:flutter/material.dart';
-
- class GroupSelectProvider with ChangeNotifier {
- List<FriendModel> curSelectFriendList = [];
-
- addFriend(FriendModel friendModel) {
- curSelectFriendList.add(friendModel);
- notifyListeners();
- }
-
- removeFriend(FriendModel friendModel) {
- curSelectFriendList.remove(friendModel);
- notifyListeners();
- }
-
- isSelect(FriendModel friendModel) {
- return curSelectFriendList.contains(friendModel);
- }
- }
|