safe method

String safe()

Returns the empty strung if null.

Useful for avoiding null checks in arithmetic operations.

Implementation

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