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