toStringWithDefault method

String toStringWithDefault (dynamic value, String defaultValue)

Converts value into string or returns default when value is null.

  • value the value to convert.
  • defaultValue the default value. Returns string value or default when value is null.

See [toNullableString]