NullableStringExtensions extension

Extension on nullable String providing safe fallback helpers.

on

Properties

isNotNullOrEmpty → bool

Available on String?, provided by the NullableStringExtensions extension

Returns true if string is not null and not empty.
no setter
isNullOrEmpty → bool

Available on String?, provided by the NullableStringExtensions extension

Returns true if 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 fallback defaultValue if null/empty.