Enclosed the specified value in quotes unless it is null.
static String quoteIfNonNull(String? value) { var result = "null"; if(value != null) { result = '"$value"'; } return result; }