nullIfEmpty property

String? get nullIfEmpty

Implementation

String? get nullIfEmpty => isNullOrEmpty ? null : this;