StringExtensions extension

on

Methods

slice([int? start, int? end]) String

Available on String, provided by the StringExtensions extension

Returns a new string that is a substring of this string. The substring begins at the specified start index and extends to the character at index end - 1.