quoteIfNonNull static method

String quoteIfNonNull(
  1. String? value
)

Enclosed the specified value in quotes unless it is null.

Implementation

static String quoteIfNonNull(String? value) {
  var result = "null";
  if(value != null) {
    result = '"$value"';
  }
  return result;
}