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>({
  1. required S? initialState,
  2. required FastCalculatorDataProvider<D> dataProvider,
  3. Duration autoRefreshPeriod = const Duration(minutes: 1),
  4. bool? isAutoRefreshEnabled = false,
  5. bool debouceComputeEvents = false,
  6. String? debugLabel,
  7. FastCalculatorBlocDelegate? delegate,
  8. 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));
}