wrapWith method
Returns this string wrapped with before prepended and after
appended, or null if the string is empty.
Implementation
@useResult
String? wrapWith({String? before, String? after}) {
if (isEmpty) {
return null;
}
return '${before ?? ''}$this${after ?? ''}';
}