StringNullableX extension
Extension on nullable String providing safe fallback and mapping methods.
- on
Properties
- isNullOrBlank → bool
-
Available on String?, provided by the StringNullableX extension
Returns true if the string is null or entirely whitespace.no setter - isNullOrEmpty → bool
-
Available on String?, provided by the StringNullableX extension
Returns true if the string is null or strictly empty.no setter - orEmpty → String
-
Available on String?, provided by the StringNullableX extension
Returns the string, or an empty string""if null.no setter - orNull → String?
-
Available on String?, provided by the StringNullableX extension
Coerces blank strings tonull. Symmetric with StringX.blankToNull.no setter
Methods
-
mapNotBlank(
String transform(String)) → String? -
Available on String?, provided by the StringNullableX extension
Appliestransformonly if non-null and non-blank.