removeHistory method

Future<void> removeHistory(
  1. BaseKeyValue model
)

Implementation

Future<void> removeHistory(BaseKeyValue model) async {
  logDebug("搜索删除某个历史记录: $model");
  history.removeWhere((e) => e.key == model.key);
  await _saveList();
}