FastCalculatorChartToggle<B extends FastCalculatorBloc<FastCalculatorBlocEvent<FastCalculatorResults>, FastCalculatorBlocState<FastCalculatorFields, FastCalculatorResults>, FastCalculatorResults>, R extends FastCalculatorResults> constructor

const FastCalculatorChartToggle<B extends FastCalculatorBloc<FastCalculatorBlocEvent<FastCalculatorResults>, FastCalculatorBlocState<FastCalculatorFields, FastCalculatorResults>, FastCalculatorResults>, R extends FastCalculatorResults>({
  1. Key? key,
  2. required B calculatorBloc,
  3. required ValueNotifier<bool> chartViewNotifier,
  4. FastMediaType? mediaTypeThreshold,
  5. Color? disabledColor,
  6. Widget? chartIcon,
  7. Widget? listIcon,
})

Implementation

const FastCalculatorChartToggle({
  super.key,
  required super.calculatorBloc,
  required ValueNotifier<bool> chartViewNotifier,
  this.mediaTypeThreshold,
  super.disabledColor,
  Widget? chartIcon,
  Widget? listIcon,
})  : _chartViewNotifier = chartViewNotifier,
      _chartIcon = chartIcon,
      _listIcon = listIcon;