Clear method
Clear For Clear All Steps
Implementation
Future<void> Clear(NumberUndo num, {int? count}) async {
if (num == NumberUndo.All) {
SqliteStorage.Actions.clear();
} else {
SqliteStorage.Actions.removeRange(
SqliteStorage.Actions.length - count!, SqliteStorage.Actions.length);
}
}