getStringOrDefault static method

String getStringOrDefault(
  1. String result, {
  2. String defaultString = "Unknown",
})
Return either the attribute String or a default value. The processed String. The default String to process.

Implementation

static String getStringOrDefault(String result,
        {String defaultString = "Unknown"}) =>
    TextUtil.isEmpty(result) ? defaultString : result;