removeListRow static method

dynamic removeListRow(
  1. List<int> indexes
)

Implementation

static removeListRow(List<int> indexes) async {
  String reading = await read();
  if (reading.isNotEmpty) {
    Map map = jsonDecode(reading);
    for (var i = 0; i < indexes.length; i++) {
      map['data']['data'].removeAt(indexes[i]);
    }
    String toS = jsonEncode(map);
    write(toS);
  }
}