removeQuotes method

String removeQuotes(
  1. String value
)

Removes any double-quotes from the value when present.

Implementation

String removeQuotes(String value) {
  if (value.startsWith('"') && value.endsWith('"')) {
    return value.substring(1, value.length - 1);
  }

  return value;
}