WordCloudData constructor

WordCloudData({
  1. required List<Map> data,
})

Implementation

WordCloudData({
  required this.data,
}) {
  data = (data..sort((a, b) => a['value'].compareTo(b['value'])))
      .reversed
      .toList();
}