orEmpty method

String orEmpty()

Returns this string if non-null, otherwise the empty string.

Implementation

String orEmpty() => this ?? '';