class Brain with ChangeNotifier {
List<List<IconData>> icon = [];
Brain() {
for (int i = 0; i < 10; i++) {
List<IconData> temp = [];
for (int j = 0; j < 10; j++) {
temp.add(Icons.square_outlined);
}
icon.add(temp);
}
[...]
}
}
After some testing it seems like provider is calling it's constructor every widget state, but my icon list doesn't reset after changing some of the icons. How is it possible?