mixin和inheritance有什么区别?
oop inheritance mixins
我知道 flutter 中的 BLoC 就像 android 的 MVVM 中的 viewmodel 层,因此在配置更改时不会一次又一次地获取数据(例如:屏幕方向的更改)。
我很困惑提供者是替换 BLoC 模式中 RxDart 的功能还是替换角色 BLoC 模式本身。
此外,如果我根本不使用 BLoC,那么应用程序是否会在配置更改后继续存在。
请通过一些用例解释提供程序对 BLoC、RxDart 组合的限制。
flutter bloc flutter-provider
bloc ×1
flutter ×1
flutter-provider ×1
inheritance ×1
mixins ×1
oop ×1