nullIfEmpty method

String? nullIfEmpty()

Implementation

String? nullIfEmpty() => isEmpty ? null : this;