toListOfPairsAsMap method

List<Map<String, dynamic>> toListOfPairsAsMap(
  1. List<P> listOfPairs, {
  2. TypeMapper? xMapper,
  3. TypeMapper? yMapper,
})

Implementation

List<Map<String, dynamic>> toListOfPairsAsMap(List<P> listOfPairs,
    {TypeMapper? xMapper, TypeMapper? yMapper}) {
  return listOfPairs
      .map((e) => toPairAsMap(e, xMapper: xMapper, yMapper: yMapper))
      .toList()
      .cast();
}