changeGeneration method

int? changeGeneration([
  1. bool? closeEvent
])

Returns a number that can later be passed to isClean to test whether any edits were made (and not undone) in the meantime. If closeEvent is true, the current history event will be 'closed', meaning it can't be combined with further changes (rapid typing or deleting events are typically combined).

Implementation

int? changeGeneration([bool? closeEvent]) {
  return closeEvent == null
      ? call('changeGeneration')
      : callArg('changeGeneration', closeEvent);
}