renderEditDialog property
Renders a custom edit dialog widget with two parameters.
First parameter, row, gives the current selected row information.
Second parameter, onSuccess, is a function and it must return a new ExpandableRow variable to update the value of the row inside the widget.
renderEditDialog: (row, onSuccess) {
return AlertDialog(
title: SizedBox(
height: 300,
child: TextButton(
child: const Text("Change Row"),
onPressed: () {
row.cells[1].value = "New Value";
onSuccess(row);
},
),
),
);
}
Implementation
final Widget Function(
ExpandableRow row,
void Function(ExpandableRow newRow) onSuccess,
)? renderEditDialog;