complete method
Implementation
Future<bool> complete() async {
busy = true;
// post the row
bool ok = await _post();
// mark row cells as clean
if (ok) {
dirty = false;
for (var cell in cells) {
cell.dirty = false;
}
}
// mark fields as clean
if (ok && fields != null) {
for (var field in fields!) {
field.dirty = false;
}
}
busy = false;
return ok;
}