ajwah_bloc 1.8.2 ajwah_bloc: ^1.8.2 copied to clipboard
Rx based state management library. Manage your application's states, effects, and actions easy way.
Rx based state management library for Dart. Manage your application's states, effects, and actions easy way.
Fix lib/src/effectSubscription.dart. (-0.50 points)
Analysis of lib/src/effectSubscription.dart reported 1 hint:
line 10 col 19: The class 'Stream' was not exported from 'dart:core' until version 2.1, but this code is required to be able to run on earlier versions.
added testing and update doc
Fix lib/src/storeHelper.dart. (-0.50 points)
Analysis of lib/src/storeHelper.dart reported 1 hint:
line 39 col 19: Avoid empty catch blocks.
Added select2(...) method. This method takes a callback which has a single Map<String, dynamic> type arg. If you pass Map key as a state name then you will get corresponding model instance as value.
final _message$ = store() .select2<TodoModel>((states) => states['todo']) .map((tm) => tm.message) .distinct();
updating doc and param type changed in
param type changed in dispatch() function and exposed select() and select2() functions into the global scope
T reduce(T state, Action action) function has been replaced with
Stream<T> mapActionToState(T state, Action action) into the
sync with rxDart version: >=0.23.0
update sdk version