Abusing StatefulWidget's setState, no access modifiers in [Dart, Flutter]

1 Просмотры
Издатель
In one of the previous videos (https://www.youtube.com/watch?v=Hkl2JuCZTKE&t=7s) I presented how to abuse StatelessWidget and make it render a mutable state.

This time, I'd like to show you how to abuse the StatefulWidget's API. More specifically, the setState method.

This video also explains some of the possible issues with Dart's lack of access modifiers. Only one access modifier exists in dart "_" which means "internal" in other languages or "file/package private", which is not ideal.

#dart #flutter
Категория
Язык программирования Dart
Комментариев нет.