'Flutter: Create an extra cell at the end of column of a datatable to show sum of all values in the column whose data come from firestore database

I have a data table in which data comes from firestore database and at end of a column am trying to add an extra cell that shows the sum of all values in cells above it, is there any way to do this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source