removeGroup method

  1. @override
dynamic removeGroup(
  1. String guid
)
override

Implementation

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

  if (matchingIndex != -1) {
    removeElementAt(matchingIndex);
  }
}