updateGroup method

  1. @override
dynamic updateGroup(
  1. Group group
)
override

Implementation

@override
updateGroup(Group group) {
  int matchingIndex = list.indexWhere((element) =>
      ((element.conversationWith is Group) &&
          ((element.conversationWith as Group).guid == group.guid)));

  if (matchingIndex != -1) {
    list[matchingIndex].conversationWith = group;
    update();
  }
}