resolvePlaceholders abstract method

String resolvePlaceholders(
  1. String text
)

Replaces every ${key} and ${key:default} in text with the property's value, for text written by someone else, such as a message template. A placeholder that cannot be resolved and has no default stays as it is.

resolver.resolvePlaceholders(r'Hello ${user:guest}'); // 'Hello guest'

Implementation

String resolvePlaceholders(String text);