StatictruncateTruncates the given value in the middle if the length of the value exceeds the given maxLength.
The value to truncate.
The maximum length of the output.
The percentage of the string to preserve from the beginning. The value is expressed by an open interval of (0, 1). If this value is closer to 1 the truncation happens near the end of the string and when it is closer to 0 the truncation happens near the beginning of the string.
The truncated value.
Value converter to truncate values in the middle. Refer the common/value-converters/truncateMiddle!truncateMiddle | truncateMiddle core function for more details.
Example