disableGroup method

Future<void> disableGroup(
  1. String groupID
)

Implementation

Future<void> disableGroup(String groupID) async {
  await AppPreferences.private.setBool(_enabledKey(groupID), false);
  await stopGroup(groupID);
  _emitGroup(
    groupID,
    state.group(groupID).copyWith(autoSyncEnabled: false),
  );
}