StringUtils extension

on

Properties

getTextSize Size

Available on String?, provided by the StringUtils extension

no setter
isEmptyOrNull bool

Available on String?, provided by the StringUtils extension

Return a bool if the string is null or empty
no setter

Methods

equalsIgnoreCase(String? other) bool

Available on String?, provided by the StringUtils extension

getFirstChart() String

Available on String?, provided by the StringUtils extension

Lấy giá trị đầu tiên của chuỗi
hasCapitalletter() bool

Available on String?, provided by the StringUtils extension

Kiểm tra string tất cả là chữ hoa
hasMatch(String? value, String pattern) bool

Available on String?, provided by the StringUtils extension

isAlphabetOnly() bool

Available on String?, provided by the StringUtils extension

Checks if string consist only Alphabet. (No Whitespace)
isAudio(String filePath) bool

Available on String?, provided by the StringUtils extension

Kiểm tra string là audio file
isCurrency() bool

Available on String?, provided by the StringUtils extension

kiểm tra string là tiền
isEmail() bool

Available on String?, provided by the StringUtils extension

Kiểm tra string là email
isHTML(String filePath) bool

Available on String?, provided by the StringUtils extension

Kiểm tra string là html file
isImage(String filePath) bool

Available on String?, provided by the StringUtils extension

Kiểm tra string là image file
isNumericOnly() bool

Available on String?, provided by the StringUtils extension

isPhoneNumber() bool

Available on String?, provided by the StringUtils extension

kiểm tra string là số điện thoại
isUsername() bool

Available on String?, provided by the StringUtils extension

Kiểm tra string là username
isVideo(String filePath) bool

Available on String?, provided by the StringUtils extension

Kiểm tra string là video file
printThis() → void

Available on String?, provided by the StringUtils extension

prints to console this text if it's not empty or null
removeAllWhiteSpace() String?

Available on String?, provided by the StringUtils extension

Returns a String without white space at all
replaceAfter(String delimiter, String replacement, [String? defaultValue = '']) String?

Available on String?, provided by the StringUtils extension

Replace part of string after the first occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns defaultValue which defaults to the original string.
replaceBefore(String delimiter, String replacement, [String? defaultValue]) String?

Available on String?, provided by the StringUtils extension

Replace part of string before the first occurrence of given delimiter with the replacement string. If the string does not contain the delimiter, returns missingDelimiterValue? which defaults to the original string.
toDoubleOrNull() double?

Available on String?, provided by the StringUtils extension

Parses the string as an double or returns null if it is not a number.
toIntOrNull() int?

Available on String?, provided by the StringUtils extension

Parses the string as an int or returns null if it is not a number.