Formatted

abstract fun Formatted(format: String, focused: String)(source)

Appends a localised format string whose single %s placeholder becomes focused in the focused style; the rest stays unfocused. Example: Formatted("Plan the %s", "trip").

Throws

when format has no %s or more than one.