getCalculation method Null safety

  1. @protected
(void Function?(Model<Operation>)?) getCalculation(
  1. Operation o
)

Implementation

@protected
void Function(Model<Operation>)? getCalculation(Operation o) {
  const selector = _OperationSelector();
  Function(Model<Operation>)? floatOrInt =
  model.displayMode.select(selector, o);
  return o.calcDefinedFor(controller, floatOrInt);
}