orEmpty method

String orEmpty()

Returns this string if non-null, otherwise the empty string. Audited: 2026-06-12 11:26 EDT

Implementation

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