insert method
void
insert(
- dynamic currentRow,
- dynamic item
表单插入,可以是单个 row,也可以使一组 rows
Implementation
void insert(currentRow, item) {
if (item is List<TFormRow>) {
rows.insertAll(rows.indexOf(currentRow) + 1,
item.map((e) => e..animation = true).toList());
} else if (item is TFormRow) {
rows.insert(rows.indexOf(currentRow), item..animation = true);
}
reload();
}