NullableStringExtensions extension

on

Properties

isBlank bool

Available on String?, provided by the NullableStringExtensions extension

Null safe check if string is blank.
no setter

Methods

containsAny(List<Pattern> searchPatterns, [int startIndex = 0]) bool

Available on String?, provided by the NullableStringExtensions extension

or(String other) String

Available on String?, provided by the NullableStringExtensions extension

Returns the string itself if not null otherwise the other string.
startsWithAny(List<Pattern> prefixes, [int index = 0]) bool

Available on String?, provided by the NullableStringExtensions extension

Null safe check if the string starts with any of given prefixes.