removeAt method

Future<void> removeAt(
  1. int index
)

Delete an object at an index

Implementation

Future<void> removeAt(int index) async {
  List<dynamic> list = await getAll();

  if (index >= list.length) return;

  list.removeAt(index);

  await _saveList(list);
}