public String(value as Object)
Builds a string from any object by using its textual representation. The result is an immutable snapshot, including when value is a MutableString.
| Parameter | Description |
|---|---|
value | Source object. When null, the created string is "null". |
source = String("klyn")
copy = MutableString(source)
copy[0] = 'K'
assert source == "klyn"
assert copy == "Klyn"