stringValue property

  1. @override
String? stringValue
override

Return the value of the string literal, or null if the string is not a constant string without any string interpolation.

Implementation

@override
String? get stringValue {
  StringBuffer buffer = StringBuffer();
  try {
    _appendStringValue(buffer);
  } on ArgumentError {
    return null;
  }
  return buffer.toString();
}