copyAddPast static method

dynamic copyAddPast(
  1. int i
)

Implementation

static copyAddPast(int i) async {
  String reading = await read();
  if (reading.isNotEmpty) {
    Map maps = jsonDecode(reading);
    final map = maps['data']['data'][i];
    add(map);
  }
}