addDataAsMapList method

void addDataAsMapList(
  1. List<Map> newdata
)

Implementation

void addDataAsMapList(List<Map> newdata) {
  data.addAll(newdata);
  data = (data..sort((a, b) => a['value'].compareTo(b['value'])))
      .reversed
      .toList();
}