extAsNullable function
dynamic
extAsNullable(
- dynamic value
AsNullable(v): empty→NULL, otherwise quoted
Implementation
dynamic extAsNullable(dynamic value) {
final s = varToStr(value);
if (s.isEmpty || value == null) return 'NULL';
return "'${s.replaceAll("'", "''")}'";
}