evaluatePostfix static method

num evaluatePostfix({
  1. required String expression,
  2. required Map context,
})

Implementation

static num evaluatePostfix({required String expression, required Map context}) {
  return _evaluate(expression.split(''), context: context, reverseOperands: true);
}