NullableStringExtensions extension
Extension on nullable String providing safe fallback helpers.
- on
Properties
- isNotNullOrEmpty → bool
-
Available on String?, provided by the NullableStringExtensions extension
Returnstrueif string is not null and not empty.no setter - isNullOrEmpty → bool
-
Available on String?, provided by the NullableStringExtensions extension
Returnstrueif string is either null or empty.no setter
Methods
-
orDefault(
[String defaultValue = '']) → String -
Available on String?, provided by the NullableStringExtensions extension
Returns the string or a fallbackdefaultValueif null/empty.