evaluatePrefix static method

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

Implementation

static num evaluatePrefix({required String expression, required Map context}) {
  return _evaluate(expression.split('').reversed.toList(), context: context);
}