StringExtensions extension

on

Properties

hardTrim String?

Available on String?, provided by the StringExtensions extension

return Sting without any spaces
no setter
isDateTime bool

Available on String?, provided by the StringExtensions extension

check the string can be DateTime
no setter
isDouble bool

Available on String?, provided by the StringExtensions extension

check the string can be double
no setter
isInternationalEgyptianPhone bool

Available on String?, provided by the StringExtensions extension

check string is international egyptian phone
no setter
isInternationalKsaPhone bool

Available on String?, provided by the StringExtensions extension

no setter
isLocalEgyptianPhone bool

Available on String?, provided by the StringExtensions extension

check string is local egyptian phone
no setter
isLocalKsaPhone bool

Available on String?, provided by the StringExtensions extension

check string is local ksa phone
no setter
isNullOrEmpty bool

Available on String?, provided by the StringExtensions extension

check the string is null or empty
no setter
isNullOrEmptyOrWhiteSpace bool

Available on String?, provided by the StringExtensions extension

check the string is null or empty or whitespace
no setter

Methods

arabicToEnglishNumbers() String?

Available on String?, provided by the StringExtensions extension

will convert from arabic numbers to english numbers
englishToArabicNumbers() String?

Available on String?, provided by the StringExtensions extension

will convert from english numbers to arabic numbers
equal(String? str) bool

Available on String?, provided by the StringExtensions extension

return true if the are equals with case matching
equalIgnoreCase(String? str) bool

Available on String?, provided by the StringExtensions extension

return true if the are equals without case matching
parseIsoDuration() Duration?

Available on String?, provided by the StringExtensions extension

convert ISO_8601 duration to dart duration copied from iso_duration_parser package
toChars() List<String>

Available on String?, provided by the StringExtensions extension

queen will return 'q','u','e','e','n'
toDate() DateTime?

Available on String?, provided by the StringExtensions extension

convert String to DateTime if is possible else will return null
toDouble() double?

Available on String?, provided by the StringExtensions extension

convert String to double if is possible else will return null
toInt() int?

Available on String?, provided by the StringExtensions extension

convert String to int if is possible else will return null
toNumber() num?

Available on String?, provided by the StringExtensions extension

convert String to num if is possible else will return null