keys property

  1. @override
List<List> get keys
override

Get (series, category) pairs of this chart data model. The returned value is a collection of List where list0 is the series, list1 is the category, in the order the setValue is called.

Implementation

@override
List<List> get keys {
  final list = <List>[];
  for (final series in series) {
    for (final category in categories) {
      list.add([series, category]);
    }
  }

  return list;
}