canUndo method

bool canUndo()

This predicate returns true if you can call #undo. This will return false if #isEnabled is false (as it is by default), if any transaction is ongoing, or if there is no #transactionToUndo that can be undone. @return {boolean} true if ready for #undo to be called.

Implementation

_i2.bool canUndo() => _i4.callMethod(
      this,
      'canUndo',
      [],
    );