NullableStringBlankHelpers extension

on

Properties

isBlank bool
Whether the string is either null, empty or is solely made of whitespace characters.
no setter
isNotBlank bool
Whether the string is not null and contains characters except of whitespace characters.
no setter

Methods

toNullIfBlank() String?
Returns null if the string isBlank or it's text if it isNotBlank.