asPlain property
String?
get
asPlain
If this contains no interpolated expressions, returns its text contents.
Otherwise, returns null
.
Implementation
String? get asPlain =>
switch (contents) { [] => '', [String first] => first, _ => null };