shouldEnableInteractions method

  1. @override
bool shouldEnableInteractions(
  1. FastCalculatorBlocState<FastCalculatorFields, FastCalculatorResults> state
)
override

Whether the action should be enabled or not.

Implementation

@override
bool shouldEnableInteractions(FastCalculatorBlocState state) {
  return state.isInitialized && state.isValid && !state.isBusy;
}