addToJob method

int addToJob(
  1. PrintJob more
)

Adds the rows of more that are not in the job yet and returns how many were added. Without a job yet, it starts one.

Implementation

int addToJob(PrintJob more) {
  final current = _job;
  if (current == null) {
    startJob(more);
    return more.rows.length;
  }
  final merged = current.merge(more);
  _job = merged;
  notifyListeners();
  return merged.rows.length - current.rows.length;
}