calculatorOperations top-level property

Map<String, dynamic Function(dynamic prevValue, dynamic nextValue)> calculatorOperations
getter/setter pair

Implementation

var calculatorOperations = {
  '/': (prevValue, nextValue) => prevValue / nextValue,
  '*': (prevValue, nextValue) => prevValue * nextValue,
  '+': (prevValue, nextValue) => prevValue + nextValue,
  '-': (prevValue, nextValue) => prevValue - nextValue,
  '=': (prevValue, nextValue) => nextValue
};