boolToYesNo static method
Converts a nullable boolean to 'Yes'/'No' string.
Parameters:
val: The boolean value to convert
Returns 'Yes' if true, 'No' if false, null if input is null.
Implementation
static String? boolToYesNo(bool? val)
{
return val == null ? null : (val ? 'Yes' : 'No');
}