StringRemoveSurroundingExtension extension
- on
Methods
-
removeSurrounding(
{required String prefix, required String suffix}) → String -
Available on String, provided by the StringRemoveSurroundingExtension extension
Removes from a String both the givenprefix
andsuffix
if and only if it starts with theprefix
and ends with thesuffix
. Otherwise returns this String unchanged.