updateGroup method

TableSyncState updateGroup(
  1. String groupID,
  2. TableSyncGroupState update(
    1. TableSyncGroupState current
    )
)

Implementation

TableSyncState updateGroup(
  String groupID,
  TableSyncGroupState Function(TableSyncGroupState current) update,
) {
  return copyWith(
    groups: {
      ...groups,
      groupID: update(group(groupID)),
    },
  );
}