stringLiteralToString function

  1. @Deprecated('Please use StringLiteral.stringValue instead')
String stringLiteralToString (StringLiteral literal)

Converts an AST node representing a string literal into a String.

Implementation

@Deprecated('Please use StringLiteral.stringValue instead')
String stringLiteralToString(StringLiteral literal) {
  return literal.stringValue;
}