onBeforeModify method

  1. @override
void onBeforeModify()
override

Called before the first modification (ie. before isDirty changes from false to true)

Implementation

@override
void onBeforeModify() {
  super.onBeforeModify();
  history.add(KdbxEntry.read(
    ctx,
    parent,
    toXml(),
    isHistoryEntry: true,
  )..file = file);
}