function toggleSelectAll(oPlugin) {
		if (areAllRowsSelected(oPlugin)) {
			oPlugin.clearSelection();
			return false;
		} else if (oPlugin._isLimitDisabled()) {
			const oBinding = oPlugin.getControl().getBinding();
			if (oBinding?.getLength()) {
				select(oPlugin, 0, oBinding.getLength() - 1);
				return true;
			}
		}
		return undefined;
	}
Selects all rows if not all are already selected, otherwise the selection is cleared.

@param {sap.ui.table.plugins.ODataV4Selection} oPlugin The selection plugin.
@returns {boolean} The state of selection. true - all selected, false - all cleared, undefined - no action