- Added canInitialize property to blocs
- Rebuild only when initializing.
- Rebuild only when busy.
- force to rebuild when busy even if buildWhen is set.
- force to rebuild when initializing even if buildWhen is set
- Update dependencies.
- Update sdk requirements.
- minor performance improvement.
- Allow to perform cancellable Async Operations.
- Removed logger dependency.
- Made sure the buildWhen method returns correct states.
- Updated tmodel dependency.
- Added a way for BlocBuilder widgets to wait for data. (beta)
buildWhen
: Allow to only re-build a widget when a certain condition is satisfied.
- Allow to override the default behavior of the close method.
- Supports sound null safety.
- Bloc's state extends from TModel class.
- Fixed currentState safety within mapEventToState.
- Allow to skip some BloC's events.
- added debounceEvent and debounce methods.
- Renamed
dispatchEvent
to addEvent
.
- Renamed
dispose
to close
.
- added stackTrace property to BlocError.
- Added helpers for throttling events.
- the method
mapEventToState
doesn't pass the bloc's state as a parameter anymore
- added
isInitializing
and isInitialized
properties to the abstract Bloc class.
- Add
isInitialized
and isInitializing
properties to BlocState.
- Add BlocError Object.
- Add
type
property to the BlocEvent.
- Remove BloC's
reset
method.
- Provide BlocBuilderWidget2 and BlocBuilderWidget3 widgets.
- Only log a warning when an internal error is not handled.
- Refactor BloC's internal errors handling.
- Make sure errors are dispatched correctly.
- BlocBuilder callback function takes a third argument, Support errors that could occur.
- Avoid to dispatch null states.
- Add hydrated blocs (beta)
- Add initState method to the abstract Bloc Class
- Bloc parameter
stateBuilder
has been renamed initialStateBuilder