setAttributes method

void setAttributes(
  1. Map<String, dynamic>? attrs
)

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;
}