isNotEmptyOrNull property

String? get isNotEmptyOrNull

Returns null for a empty String

Implementation

String? get isNotEmptyOrNull => isEmpty ? null : this;