canRedo property

bool canRedo

True if there are actions that can be redone on the GeometryEditor.geometry, false otherwise.

This applies to both programmatic and interactive changes to the GeometryEditor.geometry and is useful for enabling or disabling a UI control for redo actions.

The value of GeometryEditor.canRedo changes, raising the GeometryEditor.onCanRedoChanged event, when:

  • an initial action that can be redone is performed in the GeometryEditor, or
  • the last remaining action that can be redone was redone

Implementation

bool get canRedo {
  return _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_GeometryEditor_getCanRedo(
      _handle,
      errorHandler,
    );
  });
}