update method

void update(
  1. List rows, [
  2. String? stat,
  3. Map? meta
])

Updates table rows to rows. stat is the stream status. meta is the action result metadata.

Implementation

void update(List rows, [String? stat, Map? meta]) {
  if (this.rows == null) {
    this.rows = rows;
  } else {
    this.rows?.addAll(rows);
  }
  this.meta = meta;
  if (stat != null) {
    status = stat;
  }

  if (response == null) {
    Future(write);
  } else {
    write();
  }
}