StringExtensions extension

on

Properties

hardTrim String?
return Sting without any spaces
no setter
isDateTime bool
check the string can be DateTime
no setter
isDouble bool
check the string can be double
no setter
isInternationalEgyptianPhone bool
no setter
isInternationalKsaPhone bool
no setter
isLocalEgyptianPhone bool
no setter
isLocalKsaPhone bool
no setter
isNullOrEmpty bool
check the string is null or empty
no setter
isNullOrEmptyOrWhiteSpace bool
check the string is null or empty or whitespaces
no setter
isValidDateFormat bool
return true` if stating is valid DateTime format
no setter
toChars List<String>
queen will return 'q','u','e','e','n'
no setter

Methods

arabicToEnglishNumbers() String?
will convert from arabic numbers to english numbers
englishToArabicNumbers() String?
will convert from english numbers to arabic numbers
equal(String? str) bool
return true if the are equals with case matching
equalIgnoreCase(String? str) bool
return true if the are equals without case matching
toDate() DateTime?
convert String to DateTime if is possible else will return null
toDouble() double?
convert String to double if is possible else will return null
toInt() int?
convert String to int if is possible else will return null