orEmpty method

String orEmpty()

Returns empty string if this is null, else returns this.

Implementation

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