void addData(String word, double value) { data.add({'word': word, 'value': value}); data = (data..sort((a, b) => a['value'].compareTo(b['value']))) .reversed .toList(); }