string static method
Returns a string from the specified string.
Returns the empty string if it's not a string.
This is useful in situations where null is not acceptable, for example,
when providing a decoder to list. Otherwise, prefer using DataSource.v
directly.
Implementation
static String? string(String? value) {
if (value == null) return null;
return '\'$value\'';
}