StringExtension extension
- on
Methods
-
after(
dynamic search) → String -
Available on String, provided by the StringExtension extension
Return the remainder of a string after the first occurrence of a given value. -
afterLast(
dynamic search) → String -
Available on String, provided by the StringExtension extension
Return the remainder of a string after the last occurrence of a given value. -
before(
dynamic search) → String -
Available on String, provided by the StringExtension extension
Get the portion of a string before the first occurrence of a given value. -
beforeLast(
dynamic search) → String -
Available on String, provided by the StringExtension extension
Get the portion of a string before the last occurrence of a given value. -
between(
dynamic from, dynamic to) → String -
Available on String, provided by the StringExtension extension
Get the portion of a string between two given values. -
betweenFirst(
dynamic from, dynamic to) → String -
Available on String, provided by the StringExtension extension
Get the smallest possible portion of a string between two given values. -
kebab(
) → String -
Available on String, provided by the StringExtension extension
Convert a string to kebab case. -
lcfirst(
) → String -
Available on String, provided by the StringExtension extension
Convert the first character of the given string to lower-case. -
lower(
) → String -
Available on String, provided by the StringExtension extension
Convert the given string to lower-case. -
plural(
[int count = 2]) → String -
Available on String, provided by the StringExtension extension
Get the plural form of an English word. -
reverse(
) → String -
Available on String, provided by the StringExtension extension
Reverse the given string. -
singular(
) → String -
Available on String, provided by the StringExtension extension
Get the singular form of an English word. -
snake(
[String delimiter = '_']) → String -
Available on String, provided by the StringExtension extension
Convert a string to snake case. -
startsWithAny(
dynamic needles) → bool -
Available on String, provided by the StringExtension extension
Determine if a given string starts with any given substring. -
take(
int limit) → String -
Available on String, provided by the StringExtension extension
Take the first or lastlimit
characters of a string. -
ucfirst(
) → String -
Available on String, provided by the StringExtension extension
Make a string's first character uppercase. -
upper(
) → String -
Available on String, provided by the StringExtension extension
Convert the given string to upper-case.