resetTo method

  1. @override
void resetTo({
  1. dynamic value,
})
override

para restablecer conenido

Implementation

@override
resetTo({value}) {
  super.resetTo(value: value);

  var edit = this.edit;
  if (edit != null) {
    for (var item in this) {
      var row = edit.source.whereKey(edit.key, item.get()).firstOrNull;
      if (row != null) {
        item.resetTo(value: row.get());
      }
    }
  }
}