StringExtensions extension
- on
Properties
- hardTrim → String?
-
return
Sting
without any spacesno setter - isDateTime → bool
-
check the string can be DateTime
no setter
- isDouble → bool
-
check the string can be double
no setter
- isInternationalEgyptianPhone → bool
-
check string is international egyptian phone
no setter
- isInternationalKsaPhone → bool
-
no setter
- isLocalEgyptianPhone → bool
-
check string is local egyptian phone
no setter
- isLocalKsaPhone → bool
-
check string is local ksa phone
no setter
- isNullOrEmpty → bool
-
check the string is null or empty
no setter
- isNullOrEmptyOrWhiteSpace → bool
-
check the string is null or empty or whitespace
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 -
parseIsoDuration(
) → Duration? - convert ISO_8601 duration to dart duration copied from iso_duration_parser package
-
toChars(
) → List< String> -
queen
will return'q','u','e','e','n'
-
toDate(
) → DateTime? -
convert
String
toDateTime
if is possible else will return null -
toDouble(
) → double? -
convert
String
todouble
if is possible else will return null -
toInt(
) → int? -
convert
String
toint
if is possible else will return null -
toNumber(
) → num? -
convert
String
tonum
if is possible else will return null