handlePlatformUndo method

  1. @override
void handlePlatformUndo(
  1. UndoDirection direction
)
override

Requests that the client perform an undo or redo operation.

Currently only used on iOS 9+ when the undo or redo methods are invoked by the platform. For example, when using three-finger swipe gestures, the iPad keyboard, or voice control.

Implementation

@override
void handlePlatformUndo(UndoDirection direction) {
  switch (direction) {
    case UndoDirection.undo:
      undo();
    case UndoDirection.redo:
      redo();
  }
}