removeById static method

Future<void> removeById(
  1. String id
)

Remove record by id

Implementation

static Future<void> removeById(String id) async {
  final list = await getList();
  list.removeWhere((e) => e.id == id);
  await saveList(list);
}