toStr static method

String toStr(
  1. dynamic d,
  2. String def
)

Converts to not-nullable String

Implementation

static String toStr(dynamic d, String def) {
  return toStrN(d) ?? def;
}