Clear method

Future<void> Clear(
  1. NumberUndo num, {
  2. int? count,
})

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);
  }
}