redo method
void
redo()
It will remove last reverted actions and add it into _latestActions
Then, it will modify the real points with the last reverted action.
Implementation
void redo() {
if (_revertedActions.isNotEmpty) {
final List<Point> lastRevertedAction = _revertedActions.removeLast();
_latestActions.add(<Point>[...lastRevertedAction]);
points = <Point>[...lastRevertedAction];
notifyListeners();
return;
}
}