style function
Returns the value of the style property with the specified name for the specified node.
If the node has an inline style with the specified name, its value is returned; otherwise, the computed property value is returned. See also selection.styleGet.
Implementation
String? style(Element? node, String name) {
final styleValue = _getPropertyValue(node, name);
if (styleValue != null && styleValue != "") return styleValue;
return node != null
? g.window(node).getComputedStyle(node, null).getPropertyValue(name)
: null;
}