styleLine property
String?
get
styleLine
The style in one line — 14/400 #1D1B20 Roboto — or null when this node
draws no text.
For the readers that pay per byte. A find hit spelling its style out in
full is ten keys and ~70 tokens, and thirty of them is most of a reply;
this is the four fields anybody scanning a list is scanning for, in
about twelve. The whole map is still on the node for whoever opened one.
Implementation
String? get styleLine {
if (textStyle.isEmpty) return null;
var size = textStyle['size'];
var weight = textStyle['weight'];
var head = [?size, ?weight].join('/');
return [
if (head.isNotEmpty) head,
?textStyle['color'],
?textStyle['family'],
].join(' ');
}