makeNonBreaking method
Returns a new string with hyphens and spaces replaced by non-breaking equivalents.
Implementation
@useResult
String makeNonBreaking() => replaceAll(
'-',
StringExtensions.nonBreakingHyphen,
).replaceAll(' ', StringExtensions.nonBreakingSpace);