NullStringExtension extension

on

Properties

capitalizeEachWordFirstCharacter String

Available on String?, provided by the NullStringExtension extension

'I like dart language'.capitalizeEachWordFirstCharacter() // I Like Dart Language 'I like dart language'.capitalizeEachWordFirstCharacter() // I Like Dart Language
no setter
capitalizeFirstCharacter String

Available on String?, provided by the NullStringExtension extension

Returns string with capitalized first letter Example: assert('test'.capitalizeFirstCharacter(), 'Test');
no setter
countWords int

Available on String?, provided by the NullStringExtension extension

Returns a string abbreviation.
no setter
defaultBlank String

Available on String?, provided by the NullStringExtension extension

If Given String s is Null return blank String
no setter
generateRandomString String

Available on String?, provided by the NullStringExtension extension

no setter
isAlphabetOnly bool

Available on String?, provided by the NullStringExtension extension

Returns true if string contains only alphabet symbols
no setter
isContainsAlphabetLetter bool

Available on String?, provided by the NullStringExtension extension

Checks whether the given string contains a single letter or not and return True if contains otherwise return False
no setter
isDateTime bool

Available on String?, provided by the NullStringExtension extension

check this string value convertible in DateTime or not
no setter
isDouble bool

Available on String?, provided by the NullStringExtension extension

check this string value convertible in double or not
no setter
isEmptyOrNull bool

Available on String?, provided by the NullStringExtension extension

Checks if the given String s is null or empty
no setter
isInt bool

Available on String?, provided by the NullStringExtension extension

check value is integer or not and return true or false
no setter
isJsonDecodable bool

Available on String?, provided by the NullStringExtension extension

Check if string is json decodable or not
no setter
isNotEmptyOrNull bool

Available on String?, provided by the NullStringExtension extension

Checks if the given String s is not null or empty
no setter
isNumber bool

Available on String?, provided by the NullStringExtension extension

check value is Number or not and return true or false
no setter
isValidateEmail bool

Available on String?, provided by the NullStringExtension extension

Checks whether the given string is a valid email address or not
no setter
removeAllWhiteSpace String

Available on String?, provided by the NullStringExtension extension

Removes all whitespaces from string
no setter
reversed String

Available on String?, provided by the NullStringExtension extension

Returns the reversed string
no setter
toDateTime DateTime?

Available on String?, provided by the NullStringExtension extension

Date format give as api utc time example 2023-04-28T05:34:53.684Z
no setter
toDouble double?

Available on String?, provided by the NullStringExtension extension

convert value in Double
no setter
toInt int?

Available on String?, provided by the NullStringExtension extension

convert value in Int
no setter
toLength int

Available on String?, provided by the NullStringExtension extension

get characters length of String
no setter
toNumber num?

Available on String?, provided by the NullStringExtension extension

convert value in Number
no setter
validatePhone bool

Available on String?, provided by the NullStringExtension extension

Check phone validation
no setter
validatePhoneWithCountryCode bool

Available on String?, provided by the NullStringExtension extension

Check phone validation with country code
no setter
validateURL bool

Available on String?, provided by the NullStringExtension extension

Check URL validation
no setter

Methods

isPasswordValidator({int minLength = 6, int uppercaseCharCount = 0, int lowercaseCharCount = 0, int numericCharCount = 0, int specialCharCount = 0}) bool

Available on String?, provided by the NullStringExtension extension

default minimum value 6 check password give true and false
lastChars(int n) String

Available on String?, provided by the NullStringExtension extension

get last charts of give value 'I like dart language'.lastChars(13) // dart language
startsWithCharacters(String characters, {bool matchCase = false}) bool

Available on String?, provided by the NullStringExtension extension

Check characters is start with String Default All String convert in lower case
take(int numberOfCharacters) String

Available on String?, provided by the NullStringExtension extension

Returns a string first Characters.
toWordsFirstCharacters({int? numberOfCharacters, String splitBy = '\\s+'}) String

Available on String?, provided by the NullStringExtension extension

return words first letter of given string
validate([String value = '']) String

Available on String?, provided by the NullStringExtension extension

Check null string, return given value if null