parse method

Parses the given value into a PlaceholderParsedValue structure without resolving it.

This method breaks the string into a list of Parts (text and placeholders), but does not attempt to resolve them.

Useful if you need to inspect the structure of a string before resolving it.

Implementation

PlaceholderParsedValue parse(String value) {
  List<PlaceholderPart> parts = _parseWithPlaceholder(value, false);
  return PlaceholderParsedValue(value, parts);
}