You can use the DataGridRowAdapter. color property to change the color of the row. To maintain the row background color while perform sorting, you can get the index from effectiveRows property, which holds the sorted collection.
How do I change the background color of a row in flutter?
You can use the DataGridRowAdapter. color property to change the color of the row. To maintain the row background color while perform sorting, you can get the index from effectiveRows property, which holds the sorted collection.