strings library Null safety

Classes

StringJoiner
WordBuilder

Constants

chars → const String
"abcdefghijklmnopqrstuvwxyz"
numbers → const String
"0123456789"

Properties

notLetterOrNumber Pattern
final
phoneNumberSplitCharacters Pattern
final

Functions

anyMatch(String? subject, List<String> potentials, {bool caseSensitive = true}) bool
buildString(void builder(StringBuffer buffer)) String
capitalize(String? source) String?
defaultIfEmpty(String? primary, String ifBlank) String?
findInitials(List? sources) String?
firstNonEmpty(Iterable<String?>? strings) String?
initials(dynamic from, {int max = 2}) String?
isNullOrBlank(String? input) bool
isPhone(String input) bool
joinOrNull(Iterable<String?>? items, {String separator = " "}) String?
joinString(void builder(StringJoiner buffer), [String? separator]) String
md5(Uint8List bytes) String
nonBlank(String? input) String?
properCase(String? source) String?
randomString(int length, {bool? numbersOnly, Random? rnd}) String
repeat(String source, int times) String
splitSnakeCase(String? source) String?
startsWith(String? first, String? second, {bool ignoreCase = true}) bool
tokenizePhoneNumber(String? phoneNumber) Iterable<String>
trim(String? target, List<String>? chars, {bool trimWhitespace = true}) String?
uncapitalize(String source) String
uncapitalizeNull(String? source) String?
uuid() String
uuidb() List<int?>
withString<R>(Iterable<String?> strings, R handler(String string)) → R?