What are some pros and cons of Scoped Model vs BLoC and vice versa?

Technology CommunityCategory: FlutterWhat are some pros and cons of Scoped Model vs BLoC and vice versa?
VietMX Staff asked 3 years ago

Pros of Scoped Model

  • Business logic, state management and UI code separation.
  • Easy to learn.

Cons Scoped Model

  • Requires third-party library.
  • As model gets more and more complex it’s hard to keep track when you should call notifyListeners().

Pros of BLoC

  • No third-party libraries needed.
  • Business logic, state management and UI logic separation.
  • It’s reactive. No additional calls are needed like in case with Scoped Model’s notifyListeners().

Cons of BLoC

  • Experience working with streams or rxdart is required.