RxStringExt extension

on

Properties

codeUnits → List<int>

Available on Rx<String>, provided by the RxStringExt extension

Returns an unmodifiable list of the UTF-16 code units of this string.
no setter
isEmpty → bool

Available on Rx<String>, provided by the RxStringExt extension

Returns true if this string is empty.
no setter
isNotEmpty → bool

Available on Rx<String>, provided by the RxStringExt extension

Returns true if this string is not empty.
no setter
runes → Runes

Available on Rx<String>, provided by the RxStringExt extension

Returns an Iterable of Unicode code-points of this string.
no setter

Methods

allMatches(String string, [int start = 0]) → Iterable<Match>

Available on Rx<String>, provided by the RxStringExt extension

compareTo(String other) → int

Available on Rx<String>, provided by the RxStringExt extension

contains(Pattern other, [int startIndex = 0]) → bool

Available on Rx<String>, provided by the RxStringExt extension

Returns true if this string contains a match of other:
endsWith(String other) → bool

Available on Rx<String>, provided by the RxStringExt extension

Returns true if this string ends with other. For example:
indexOf(Pattern pattern, [int start = 0]) → int

Available on Rx<String>, provided by the RxStringExt extension

Returns the position of the first match of pattern in this string
lastIndexOf(Pattern pattern, [int? start]) → int

Available on Rx<String>, provided by the RxStringExt extension

Returns the starting position of the last match pattern in this string, searching backward starting at start, inclusive:
matchAsPrefix(String string, [int start = 0]) → Match?

Available on Rx<String>, provided by the RxStringExt extension

padLeft(int width, [String padding = ' ']) → String

Available on Rx<String>, provided by the RxStringExt extension

Pads this string on the left if it is shorter than width.
padRight(int width, [String padding = ' ']) → String

Available on Rx<String>, provided by the RxStringExt extension

Pads this string on the right if it is shorter than width. Return a new string that appends padding after this string one time for each position the length is less than width.
replaceAll(Pattern from, String replace) → String

Available on Rx<String>, provided by the RxStringExt extension

Replaces all substrings that match from with replace.
split(Pattern pattern) → List<String>

Available on Rx<String>, provided by the RxStringExt extension

Splits the string at matches of pattern and returns a list of substrings.
startsWith(Pattern pattern, [int index = 0]) → bool

Available on Rx<String>, provided by the RxStringExt extension

Returns true if this string starts with a match of pattern.
substring(int startIndex, [int? endIndex]) → String

Available on Rx<String>, provided by the RxStringExt extension

Returns the substring of this string that extends from startIndex, inclusive, to endIndex, exclusive
toLowerCase() → String

Available on Rx<String>, provided by the RxStringExt extension

Converts all characters in this string to lower case. If the string is already in all lower case, this method returns this.
toUpperCase() → String

Available on Rx<String>, provided by the RxStringExt extension

Converts all characters in this string to upper case. If the string is already in all upper case, this method returns this.
trim() → String

Available on Rx<String>, provided by the RxStringExt extension

Returns the string without any leading and trailing whitespace.
trimLeft() → String

Available on Rx<String>, provided by the RxStringExt extension

Returns the string without any leading whitespace.
trimRight() → String

Available on Rx<String>, provided by the RxStringExt extension

Returns the string without any trailing whitespace.

Operators

operator +(String val) → String

Available on Rx<String>, provided by the RxStringExt extension