getValueWithQuotes function
Implementation
String getValueWithQuotes(dynamic val) {
try {
if (val is String || val is DateTime) {
return '\'$val\'';
} else if (val is bool) {
return val ? '1' : '0';
} else {
return val.toString();
}
} catch (e) {
print('ERROR in getValueWithQuotes method: ${e.toString()}');
throw Exception(e);
}
}