wrapSingleAccentedQuotes method

  1. @useResult
String wrapSingleAccentedQuotes({
  1. bool quoteEmpty = false,
})

Returns this string wrapped in accented single quotes.

If the string is empty, returns the empty quote pair if quoteEmpty is true, otherwise returns an empty string.

Implementation

@useResult
String wrapSingleAccentedQuotes({bool quoteEmpty = false}) {
  if (isEmpty) {
    return quoteEmpty ? '$accentedQuoteOpening$accentedQuoteClosing' : '';
  }

  return '$accentedQuoteOpening$this$accentedQuoteClosing';
}