void update({int? total, int? offset}) { if (total != null) this.total = total; if (offset != null) this.offset = offset; this.updateState(); }