SuperString extension

on

Properties

first String
Return the first charcter of a string
no setter
isAlNum bool
Return true if all the characters are alphanumeric (alphabet letter (a-z) and numbers (0-9)).
no setter
isAlpha bool
Return true if all the characters are alphabets letter (a-z).
no setter
isIdentifier bool
Return true if the string contains only alphanumeric letters (a-z) , (0-9) and underscores (_).
no setter
isInteger bool
Return true if all the characters are int (0-9).
no setter
isLowerCase bool
Return true if all characters in the string are in lowerCase.
no setter
isUpperCase bool
Return true if all characters in the string are in upperCase.
no setter
iterable Iterable<String>
Return a Iterable containing all the characters of the string.
no setter
last String
Return the last charcter of a string
no setter

Methods

capitalize() String
Return a String with its first character UpperCase and the rest LowerCase.
center(int length, [String character = ' ']) String
Return a String of specified length width which is align in center, using the specified character.
charAt(int index) String
Returns the character at the specified index in a string.
containsAll(Iterable<String> values) bool
check if this contains all the value from list
containsAny(Iterable<String> values) bool
check if this contains any one of the value from list
count(String value, [int start = 0, int? end]) int
Return the number of times a specified value appears in the string.
expandTabs([int? size]) String
expandTabs method sets the tab size to the specified number of whitespaces.
similarity(String matcher, {bool isWordComparison = false}) int
Returns the number of matching characters of two strings.
swapcase() String
Return a String where all the upperCase letters are converted to lowerCase and vice versa.
title() String
Return a String where first character of every words is converted to upperCase.
toCamelCase({bool isLowerCamelCase = false}) String
Convert the given string to camelCase.
wordWrap({int width = 75, String lineBreak = '\n', bool cutWord = false}) String
Return a String wrapped at the specified length.