utils/string_utils library

Functions

hasMatch(String? value, String pattern) bool
isBlank(dynamic value) bool?
Checks if data is null or blank (empty or only contains whitespace).
isBool(String value) bool
Checks if string is boolean.
isCnpj(String cnpj) bool
isCpf(String cpf) bool
Checks if the cpf is valid.
isDateTime(String s) bool
Checks if string is DateTime (UTC or Iso8601).
isDesktopPlatform() bool
isDouble(String value) bool
Checks if string is double.
isEmail(String? s) bool
Checks if string is email.
isInt(String value) bool
Checks if string is int.
isIPv4(String s) bool
Checks if string is IPv4.
isIPv6(String s) bool
Checks if string is IPv6.
isMap(String value) bool
Checks if string is map.
isMobilePlatform() bool
isNullOrBlank(dynamic value) bool
Checks if data is null or blank (empty or only contains whitespace).
isNumber(String value) bool
Checks if string is int or double.
isPhoneNumber(String s) bool
Checks if string is phone number.
isURL(String s) bool
Checks if string is URL.
isWebPlatform() bool
removeAllWhitespace(String value) String
Remove all whitespace inside string Example: your name => yourname