collect static method

List<DataPoint> collect(
  1. List list
)

Implementation

static List<DataPoint> collect(List<dynamic> list) {
  final dataPoints = <DataPoint>[];
  for (final Map<String, dynamic> map in list) {
    final dataPoint = DataPoint.from(map);
    dataPoints.add(dataPoint);
  }
  return dataPoints;
}