update method
Sets the spec and the rows at once: a line morphs from what the old spec drew to what the new one does.
Implementation
void update(Json spec, List<Json> data) {
final newData = !(identical(data, _data) || _same.equals(data, _data));
if (newData) engine.captureMorph();
this.spec = spec;
if (newData) _setRows(data);
}