deleteGroup method

Future<bool?> deleteGroup(
  1. AtGroup group
)

Function to delete a group

Implementation

Future<bool?> deleteGroup(AtGroup group) async {
  try {
    var result = await atContactImpl.deleteGroup(group);
    await getAllGroupsDetails(); //updating group list sink
    return result;
  } catch (e) {
    print('error in deleting group: $e');
    return null;
  }
}