import '/models/init_get_it.dart' show getIt; import '/models/contact_model.dart' show ContactAccountProfile, Contact; import '/models/user_model.dart' show UserAccount; List searchLocalFriend(String value) { final id = getIt.get().id; List matchFriendIds = []; getIt.get().friends.forEach((key, accountProfile) { if ((accountProfile.email.contains(value) || accountProfile.username.contains(value) || accountProfile.nickname.contains(value) || getIt.get().friends[key]!.friendRemark.contains(value)) && key != id) { matchFriendIds.add(key); } }); return matchFriendIds; }