ExtensionString extension
- on
Methods
-
isAlphabetOnly(
String s) → bool -
Available on String, provided by the ExtensionString extension
Checks if string consist only Alphabet. (No Whitespace) -
isApk(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is APK file path. -
isAudio(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is audio file path. -
isBool(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is boolean. -
isCamelCase(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string value is camelcase. -
isCapitalize(
{bool firstOnly = false}) → bool -
Available on String, provided by the ExtensionString extension
Checks if string value is capitalize. -
isCaseInsensitiveContains(
String compareTo) → bool -
Available on String, provided by the ExtensionString extension
Checks if a contains b (Treating or interpreting upper- and lowercase letters as being the same). -
isCaseInsensitiveContainsAny(
String compareTo) → bool -
Available on String, provided by the ExtensionString extension
Checks if a contains b or b contains a (Treating or interpreting upper- and lowercase letters as being the same). -
isDateTime(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is DateTime (UTC or Iso8601). -
isDocument(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is Doc file path. -
isEmail(
{int? minLength, int? maxLength}) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is email. -
isExcel(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is Excel file path. -
isHTML(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is html file path. -
isImage(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is image file path. -
isIPv4(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is IPv4. -
isIPv6(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is IPv6. -
isLengthBetween(
int minLength, int maxLength) → bool -
Available on String, provided by the ExtensionString extension
Checks if length of string is BETWEEN minLength to maxLength. -
isLengthEqualTo(
int maxLength) → bool -
Available on String, provided by the ExtensionString extension
Checks if length of string is EQUAL than maxLength. -
isLengthGreaterOrEqual(
int maxLength) → bool -
Available on String, provided by the ExtensionString extension
Checks if length of string is GREATER OR EQUAL to maxLength. -
isLengthGreaterThan(
int maxLength) → bool -
Available on String, provided by the ExtensionString extension
Checks if length of string is GREATER than maxLength. -
isLengthLowerOrEqual(
int maxLength) → bool -
Available on String, provided by the ExtensionString extension
Checks if length of string is LOWER OR EQUAL to maxLength. -
isLengthLowerThan(
int maxLength) → bool -
Available on String, provided by the ExtensionString extension
Checks if length of string is LOWER than maxLength. -
isMD5(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is MD5 -
isNull(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if data is null. -
isNullOrBlank(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if data is null or Blank (empty or only contains whitespace). -
isNum(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is num (int or double). -
isNumericOnly(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is numeric only. Numeric only doesnt accepting "." which double data type have -
isOneAKind(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if all character inside string are same. Example: 111111 -> true, wwwww -> true -
isPalindrom(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is Palindrom. -
isPDF(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is PDF file path. -
isPPT(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is powerpoint file path. -
isSHA1(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is SHA251. -
isSHA256(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is SHA256. -
isTxt(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is txt file path. -
isURL(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is URL. -
isVector(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is vector image file path. -
isVideo(
) → bool -
Available on String, provided by the ExtensionString extension
Checks if string is video file path. -
toBinary(
{bool nullOnError = false}) → String? -
Available on String, provided by the ExtensionString extension
Transform string value to binary Example: 15 => 1111 -
toBool(
{bool falseOnError = false}) → bool -
Available on String, provided by the ExtensionString extension
Transform string to boolean type -
toCamelCase(
) → String? -
Available on String, provided by the ExtensionString extension
Capitalize each word inside string Example: your name => yourName -
toCapitalize(
{bool firstOnly = false}) → String? -
Available on String, provided by the ExtensionString extension
Capitalize each word inside string Example: your name => Your Name, your name => Your name -
toDateTime(
) → DateTime? -
Available on String, provided by the ExtensionString extension
Transform String millisecondsSinceEpoch (DateTime) to DateTime -
toDouble(
{bool nullOnError = false}) → double? -
Available on String, provided by the ExtensionString extension
Transform string to double type -
toInt(
{bool nullOnError = false}) → int? -
Available on String, provided by the ExtensionString extension
Transform string to int type -
toNum(
{bool nullOnError = false}) → num? -
Available on String, provided by the ExtensionString extension
Transform string to num type -
toNumericOnly(
) → String -
Available on String, provided by the ExtensionString extension
Extract numeric value of string Example: OTP 12312 27/04/2020 => 1231227042020ß If firstword only is true, then the example return is "12312" (first found numeric word)