StringMethods extension

STRING EXTENSION

on

Properties

isAlpha → bool

Available on String?, provided by the StringMethods extension

Check if the text contains only String
no setter
isAlphaNumeric → bool

Available on String?, provided by the StringMethods extension

Check if the given text contains both alphabets and number
no setter
isDouble → bool

Available on String?, provided by the StringMethods extension

Check if the text is double (Decimal Number)
no setter
isInt → bool

Available on String?, provided by the StringMethods extension

Check if the text is int (Non-Decimal number)
no setter
isNullOrEmptyString → bool

Available on String?, provided by the StringMethods extension

check the string is null or empty and return bool
no setter
isNumeric → bool

Available on String?, provided by the StringMethods extension

Check if the given text is either decimal or non-decimal
no setter

Methods

capitalize() → String?

Available on String?, provided by the StringMethods extension

capitalize the text
removeLastLetter({required String textToRemove}) → String?

Available on String?, provided by the StringMethods extension

remove the last occurrence of a text
toDateTimeObj({required String separator, String joinCharacter = "-"}) → DateTime?

Available on String?, provided by the StringMethods extension

String datetime to datetime object
toStringDateTime({required StringDateTime releaseFormat, required String separator, String joinCharacter = "-"}) → String?

Available on String?, provided by the StringMethods extension

String datetime to String datetime