removeRow static method

dynamic removeRow(
  1. int i
)

Implementation

static removeRow(int i) async {
  String reading = await read();
  Map map = jsonDecode(reading);
  if (reading.isNotEmpty && i < map['data']['data'].length) {
    map['data']['data'].removeAt(i);
    String toS = jsonEncode(map);
    write(toS);
  }
}