updateGroupData method
Implementation
Future<dynamic> updateGroupData(AtGroup group, BuildContext context) async {
try {
var result = await updateGroup(group);
if (result is AtGroup) {
Navigator.of(context).pop();
} else if (result == null) {
CustomToast().show(TextConstants().SERVICE_ERROR, context);
} else {
CustomToast().show(result.toString(), context);
}
} catch (e) {
return e;
}
}