nullSafeString static method

String nullSafeString(
  1. String? value, {
  2. String? defaultValue,
})

Implementation

static String nullSafeString(String? value, {String? defaultValue}) {
  return value == null ? (defaultValue == null ? "" : defaultValue) : value;
}