HydratedFastCalculatorBloc<E extends FastCalculatorBlocEvent<FastCalculatorResults> , S extends FastCalculatorBlocState<FastCalculatorFields, FastCalculatorResults> , D extends FastCalculatorDocument, R extends FastCalculatorResults> constructor
HydratedFastCalculatorBloc<E extends FastCalculatorBlocEvent<FastCalculatorResults> , S extends FastCalculatorBlocState<FastCalculatorFields, FastCalculatorResults> , D extends FastCalculatorDocument, R extends FastCalculatorResults> ({
- required S? initialState,
- required FastCalculatorDataProvider<
D> dataProvider, - Duration autoRefreshPeriod = const Duration(minutes: 1),
- bool? isAutoRefreshEnabled = false,
- bool debouceComputeEvents = false,
- String? debugLabel,
- FastCalculatorBlocDelegate? delegate,
- BuildContext? getContext()?,
Implementation
HydratedFastCalculatorBloc({
required super.initialState,
required this.dataProvider,
super.autoRefreshPeriod = const Duration(minutes: 1),
super.isAutoRefreshEnabled = false,
super.debouceComputeEvents = false,
super.debugLabel,
super.delegate,
super.getContext,
}) {
addDebouncedSaveEntryEvent = debounceEvent((event) => addEvent(event));
}