ListStringExtensions extension

Extensions on List

on

Methods

anyContains(String? check, {bool caseSensitive = true}) bool

Available on List<String>, provided by the ListStringExtensions extension

Returns true if any element contains check as a substring.
commonPrefix() String

Available on List<String>, provided by the ListStringExtensions extension

Returns the longest common prefix of all strings in this list.
commonSuffix() String

Available on List<String>, provided by the ListStringExtensions extension

Returns the longest common suffix of all strings in this list.
firstNotEqualTo(String? value) String?

Available on List<String>, provided by the ListStringExtensions extension

Returns the first element that is not equal to value.
joinDisplayList({String joiner = ', ', String doubleJoiner = ' and ', String lastJoiner = ', and ', bool isUnique = true}) String?

Available on List<String>, provided by the ListStringExtensions extension

Joins these strings into a natural-language list with an Oxford comma: one item is itself, two become 'a and b', three or more become 'a, b, and c'.
joinWithFinal({String separator = ', ', String finalSeparator = 'and'}) String?

Available on List<String>, provided by the ListStringExtensions extension

Joins these strings into a sentence with a distinct final connector, e.g. ['a', 'b', 'c'].joinWithFinal() -> 'a, b and c'.
removeTrimmedEmpty({bool trim = true}) List<String>?

Available on List<String>, provided by the ListStringExtensions extension

Drops entries that are empty after trimming, returning a new list.
toLowerCase() List<String>?

Available on List<String>, provided by the ListStringExtensions extension

Returns a new list with every element lowercased (invariant culture).
toUpperCase() List<String>?

Available on List<String>, provided by the ListStringExtensions extension

Returns a new list with every element uppercased (invariant culture).