notEmptyOrNull property

String? get notEmptyOrNull

Returns self, if it's not empty, null otherwise.

Implementation

String? get notEmptyOrNull => isNotEmpty ? this : null;