orEmpty method

String orEmpty()

Returns the string if it is not null, or the empty string otherwise.

Implementation

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