Abusing StatelessWidget, so that it's stateful [Flutter, Dart]

1 Просмотры
Издатель
In #Flutter #StatelessWidget is meant not to have a mutable state, but since it's just a class, it can have a mutable state. Moreover, it's possible to re-render a StatelessWidget so that the mutable state gets updated on the screen.

Keep in mind that since it can be done, does not mean it should be done. I'm by no means telling you to do it, hence the title "Abusing StatelessWidget".
Категория
Язык программирования Dart
Комментариев нет.