notEmptyOrNull property
String?
get
notEmptyOrNull
Returns self, if it's not empty, null otherwise.
Implementation
String? get notEmptyOrNull => isNotEmpty ? this : null;
Returns self, if it's not empty, null otherwise.
String? get notEmptyOrNull => isNotEmpty ? this : null;