NullableStringExtensions extension
- on
Methods
-
or(
String defaultValue) → String -
Available on String?, provided by the NullableStringExtensions extension
Gets the same string if it is not null or empty. Otherwise it returns the specified default value. -
orEmpty(
) → String -
Available on String?, provided by the NullableStringExtensions extension
Gets the same string if it is not null or empty. Otherwise it returns an empty string. -
orProvider(
StringProvider defaultValueProvider) → String -
Available on String?, provided by the NullableStringExtensions extension
Gets the same string if it is not null or empty. Otherwise it evaluates and returns the specified default value provider.