in packages/x-flow/src/utils/index.ts [111:119]
export function isCheckBoxType(schema: any, readOnly: boolean) {
if (readOnly) return false;
if (schema.widget === 'checkbox') return true;
if (schema && schema.type === 'boolean') {
if (schema.enum) return false;
if (schema.widget === undefined) return true;
return false;
}
}