setAttributes method
Sets the attributes of the line to attrs
.
If attrs
is null
, no changes are made to the current attributes.
Implementation
void setAttributes(Map<String, dynamic>? attrs) {
if (attrs == null) return;
attributes = attrs;
}