wrapDoubleAccentedQuotes method

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

Returns this string wrapped in accented double quotes.

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

Implementation

@useResult
String wrapDoubleAccentedQuotes({bool quoteEmpty = false}) {
  if (isEmpty) {
    return quoteEmpty ? '$accentedDoubleQuoteOpening$accentedDoubleQuoteClosing' : '';
  }

  return '$accentedDoubleQuoteOpening$this$accentedDoubleQuoteClosing';
}