setAttribute method

void setAttribute(
  1. String name,
  2. dynamic value
)

Implementation

void setAttribute(String name, dynamic value) async {
  _attributes[name] = value;
  client.protocol.send("set_attributes", packMessage({name: value})).catchError((err) {
    Logger.root.log(Level.WARNING, "Unable to send attribute changes", err);
  });
}